You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
771 KiB
119 lines
771 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[140,5,6,9,13],{"+QRC":function(De,L,s){"use strict";var re=s("E9nw"),ie={"text/plain":"Text","text/html":"Url",default:"Text"},Ie="Copy to clipboard: #{key}, Enter";function ae(R){var ue=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return R.replace(/#{\s*key\s*}/g,ue)}function y(R,ue){var se,a,N,I,E,f,d=!1;ue||(ue={}),se=ue.debug||!1;try{N=re(),I=document.createRange(),E=document.getSelection(),f=document.createElement("span"),f.textContent=R,f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(p){if(p.stopPropagation(),ue.format)if(p.preventDefault(),typeof p.clipboardData=="undefined"){se&&console.warn("unable to use e.clipboardData"),se&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var T=ie[ue.format]||ie.default;window.clipboardData.setData(T,R)}else p.clipboardData.clearData(),p.clipboardData.setData(ue.format,R);ue.onCopy&&(p.preventDefault(),ue.onCopy(p.clipboardData))}),document.body.appendChild(f),I.selectNodeContents(f),E.addRange(I);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");d=!0}catch(p){se&&console.error("unable to copy using execCommand: ",p),se&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ue.format||"text",R),ue.onCopy&&ue.onCopy(window.clipboardData),d=!0}catch(T){se&&console.error("unable to copy using clipboardData: ",T),se&&console.error("falling back to prompt"),a=ae("message"in ue?ue.message:Ie),window.prompt(a,R)}}finally{E&&(typeof E.removeRange=="function"?E.removeRange(I):E.removeAllRanges()),f&&document.body.removeChild(f),N()}return d}De.exports=y},"+ua5":function(De,L,s){},"/GNS":function(De,L,s){De.exports=s.p+"static/search1.c4136dd4.png"},"/cxE":function(De,L,s){"use strict";s.d(L,"f",function(){return Ie}),s.d(L,"g",function(){return ae}),s.d(L,"h",function(){return y}),s.d(L,"e",function(){return ue}),s.d(L,"b",function(){return se}),s.d(L,"c",function(){return a}),s.d(L,"d",function(){return N}),s.d(L,"a",function(){return I});class re{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(E){setTimeout(()=>{throw E.stack?new Error(E.message+`
|
|
|
|
`+E.stack):E},0)}}emit(E){this.listeners.forEach(f=>{f(E)})}onUnexpectedError(E){this.unexpectedErrorHandler(E),this.emit(E)}onUnexpectedExternalError(E){this.unexpectedErrorHandler(E)}}const ie=new re;function Ie(E){ue(E)||ie.onUnexpectedError(E);return}function ae(E){ue(E)||ie.onUnexpectedExternalError(E);return}function y(E){if(E instanceof Error){let{name:f,message:d}=E;const h=E.stacktrace||E.stack;return{$isError:!0,name:f,message:d,stack:h}}return E}const R="Canceled";function ue(E){return E instanceof Error&&E.name===R&&E.message===R}function se(){const E=new Error(R);return E.name=E.message,E}function a(E){return E?new Error(`Illegal argument: ${E}`):new Error("Illegal argument")}function N(E){return E?new Error(`Illegal state: ${E}`):new Error("Illegal state")}class I extends Error{constructor(E){super("NotSupported");E&&(this.message=E)}}},"0/SM":function(De,L,s){De.exports={flex_box_center:"flex_box_center___gv1YF",flex_space_between:"flex_space_between___pJTp_",flex_box_vertical_center:"flex_box_vertical_center___2X-O9",flex_box_center_end:"flex_box_center_end___21hK4",flex_box_column:"flex_box_column___psPJb",wrap:"wrap___QvUDk",full:"full___2gLfk"}},"1ZF9":function(De,L,s){De.exports=s.p+"static/Authorize.cc9c212f.png"},"24hK":function(De,L,s){"use strict";s.d(L,"a",function(){return ie});class re{constructor(Ie){this.element=Ie,this.next=re.Undefined,this.prev=re.Undefined}}re.Undefined=new re(void 0);class ie{constructor(){this._first=re.Undefined,this._last=re.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===re.Undefined}clear(){let Ie=this._first;for(;Ie!==re.Undefined;){const ae=Ie.next;Ie.prev=re.Undefined,Ie.next=re.Undefined,Ie=ae}this._first=re.Undefined,this._last=re.Undefined,this._size=0}unshift(Ie){return this._insert(Ie,!1)}push(Ie){return this._insert(Ie,!0)}_insert(Ie,ae){const y=new re(Ie);if(this._first===re.Undefined)this._first=y,this._last=y;else if(ae){const ue=this._last;this._last=y,y.prev=ue,ue.next=y}else{const ue=this._first;this._first=y,y.next=ue,ue.prev=y}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(y))}}shift(){if(this._first===re.Undefined)return;{const Ie=this._first.element;return this._remove(this._first),Ie}}pop(){if(this._last===re.Undefined)return;{const Ie=this._last.element;return this._remove(this._last),Ie}}_remove(Ie){if(Ie.prev!==re.Undefined&&Ie.next!==re.Undefined){const ae=Ie.prev;ae.next=Ie.next,Ie.next.prev=ae}else Ie.prev===re.Undefined&&Ie.next===re.Undefined?(this._first=re.Undefined,this._last=re.Undefined):Ie.next===re.Undefined?(this._last=this._last.prev,this._last.next=re.Undefined):Ie.prev===re.Undefined&&(this._first=this._first.next,this._first.prev=re.Undefined);this._size-=1}*[Symbol.iterator](){let Ie=this._first;for(;Ie!==re.Undefined;)yield Ie.element,Ie=Ie.next}}},"25Vc":function(De,L,s){De.exports={wrap:"wrap___3gf4v",title:"title___BnbVm",path:"path___1Prpu",colorBlue:"colorBlue___1sUTa"}},"3/fG":function(De,L,s){"use strict";s.d(L,"a",function(){return ie});function re(Ie,ae){let y;return ae.length===0?y=Ie:y=Ie.replace(/\{(\d+)\}/g,function(R,ue){const se=ue[0];return typeof ae[se]!="undefined"?ae[se]:R}),y}function ie(Ie,ae,...y){return re(ae,y)}},"4K8j":function(De,L,s){"use strict";s.r(L);var re=s("14J3"),ie=s("BMrR"),Ie=s("jCWc"),ae=s("kPKH"),y=s("q1tI"),R=s.n(y),ue=s("bntm"),se=s("1vsH"),a=s("0/SM"),N=s.n(a),I=s("2qtc"),E=s("kLXV"),f=s("+L6B"),d=s("2/Rp"),h=s("T2oS"),p=s("W9HT"),T=s("lUTK"),W=s("BvKs"),_=s("miYZ"),g=s("tsqr"),j=s("9og8"),Q=s("5Dmo"),J=s("3S7+"),P=s("k1fw"),te=s("tJVT"),H=s("PpiC"),le=s("Znn+"),ye=s("ZTPi"),ge=s("WmNS"),z=s.n(ge),F=s("5DcX"),K=s.n(F),xe=s("Ty5D"),M=s("9kvl"),u=s("oBTY"),v=s("qVdP"),A=s("jsC+"),l=s("ozfa"),C=s("MJZm"),D=s("IZBM"),he=s("P5Jw"),_e=s("5NDa"),Ae=s("5rEg"),be=s("y8nQ"),G=s("Vl3Y"),$=s("FfZY"),me=s.n($),q=function(We){var pt=We.shixunsDetail,Dt=We.globalSetting,Ht=We.loading,Ut=We.user,In=We.dispatch,ln=We.taskData,rt=We.isRepository,Ve=Object(H.a)(We,["shixunsDetail","globalSetting","loading","user","dispatch","taskData","isRepository"]),at=Object(xe.h)(),Ye=Object(P.a)(Object(P.a)({},Object(xe.i)()),Object(xe.h)().query),Ct=Object(y.useState)({}),Ge=Object(te.a)(Ct,2),ze=Ge[0],Zt=Ge[1],Ot=Object(y.useRef)(),kt=G.a.useForm(),Nt=Object(te.a)(kt,1),Kt=Nt[0],un=Object(y.useState)(""),Hn=Object(te.a)(un,2),je=Hn[0],lt=Hn[1];Object(y.useEffect)(function(){Ve.visible&&Kt.resetFields()},[Ve.visible]),Object(y.useEffect)(function(){var wn=sessionStorage.getItem("pathArray");if(wn){var xt=wn.split(",").join("/"),Rt=xt.indexOf("/")===0?xt.substr(1):xt;lt(Rt)}},[]),Object(y.useEffect)(function(){var wn,xt;Ot.current=(wn=at.pathname)===null||wn===void 0||((xt=wn.split("/"))===null||xt===void 0)?void 0:xt[2]},[]);var Un=function(){var wn=Object(j.a)(z.a.mark(function xt(){var Rt,et,Pt=arguments;return z.a.wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:return Rt=Pt.length>0&&Pt[0]!==void 0?Pt[0]:{},mt.next=3,In({type:"shixunsDetail/addRepositoryFile",payload:{id:ln.myshixun.identifier,message:Rt.commitMessage,content:"",path:(Ve.defaultPath?Ve.defaultPath+"/":"")+Rt.path+"/"+(Rt.file||".gitkeep"),secret_repository:rt?void 0:!0}});case 3:et=mt.sent,(et==null?void 0:et.status)===0&&(g.b.success("\u6DFB\u52A0\u6210\u529F"),Ve.onOK({path:(Ve.defaultPath?Ve.defaultPath+"/":"")+Rt.path+"/"+(Rt.file||".gitkeep"),name:Rt.path.split("/")[Rt.path.split("/").length-1]}),Ve.onClose());case 5:case"end":return mt.stop()}},xt)}));return function(){return wn.apply(this,arguments)}}(),bi=function(){var xt,Rt;M.d.push("/shixuns/".concat(Ot.current,"/").concat((xt=at.pathname)===null||xt===void 0||((Rt=xt.split("/"))===null||Rt===void 0)?void 0:Rt[3]).concat(je?"/master/shixun_show/".concat(je):""))};return R.a.createElement(E.a,{width:"60%",centered:!0,visible:Ve.visible,wrapClassName:me.a.modal,onOk:function(){Kt.submit()},onCancel:Ve.onClose,title:"\u65B0\u5EFA\u6587\u4EF6\u5939"},R.a.createElement("section",{className:me.a.bg},R.a.createElement("div",{className:me.a.wrap},R.a.createElement(G.a,{className:"mt10",form:Kt,scrollToFirstError:!0,layout:"vertical",onFinish:Un,onChange:function(){var xt,Rt,et,Pt,bt=Object(P.a)({},Kt.getFieldsValue()),mt=bt==null||((xt=bt.path)===null||xt===void 0)?void 0:xt.split(""),Mt=bt==null||((Rt=bt.file)===null||Rt===void 0)?void 0:Rt.split("");mt!=null&&(et=mt.filter(function(Gn){return Gn=="/"}))!==null&&et!==void 0&&et.length&&(bt.path=bt.path.substring(0,bt.path.length-1)),Mt!=null&&(Pt=Mt.filter(function(Gn){return Gn=="/"}))!==null&&Pt!==void 0&&Pt.length&&(bt.file=bt.file.substring(0,bt.path.length-1)),Kt.setFieldsValue(Object(P.a)({},bt)),Zt(bt)}},R.a.createElement(G.a.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A",name:"path"},R.a.createElement(ie.a,null,R.a.createElement(ae.a,null,R.a.createElement("span",{className:me.a.filePath},Ve.defaultPath+"/")),R.a.createElement(ae.a,{flex:"1"},R.a.createElement(G.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},R.a.createElement(Ae.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",size:"large"}))))),R.a.createElement(G.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\uFF1A",name:"file"},R.a.createElement(Ae.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\uFF0C\u5982\u679C\u4E0D\u586B\u5199\u7CFB\u7EDF\u5C06\u5728\u6587\u4EF6\u5939\u4E0B\u521B\u5EFA.gitkeep\u7684\u9ED8\u8BA4\u6587\u4EF6",size:"large"})),R.a.createElement(G.a.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"}]},R.a.createElement(Ae.a,{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",size:"large"}))))))},Oe=Object(M.a)(function(ht){var We=ht.shixunsDetail,pt=ht.loading,Dt=ht.globalSetting,Ht=ht.user;return{shixunsDetail:We,globalSetting:Dt,user:Ht,loading:pt.models.index}})(q),S=s("7ahc"),Y=function(We){var pt=We.shixunsDetail,Dt=We.globalSetting,Ht=We.loading,Ut=We.user,In=We.taskData,ln=We.dispatch,rt=We.isRepository,Ve=We.onClose,at=Object(H.a)(We,["shixunsDetail","globalSetting","loading","user","taskData","dispatch","isRepository","onClose"]),Ye=Object(xe.h)(),Ct=Object(P.a)(Object(P.a)({},Object(xe.i)()),Object(xe.h)().query),Ge=Object(y.useState)({}),ze=Object(te.a)(Ge,2),Zt=ze[0],Ot=ze[1],kt=Object(y.useRef)(),Nt=G.a.useForm(),Kt=Object(te.a)(Nt,1),un=Kt[0],Hn=Object(y.useState)(""),je=Object(te.a)(Hn,2),lt=je[0],Un=je[1];Object(y.useEffect)(function(){at.visible&&un.resetFields()},[at.visible]),Object(y.useEffect)(function(){var xt=sessionStorage.getItem("pathArray");if(xt){var Rt=xt.split(",").join("/"),et=Rt.indexOf("/")===0?Rt.substr(1):Rt;Un(et)}},[]),Object(y.useEffect)(function(){var xt,Rt;kt.current=(xt=Ye.pathname)===null||xt===void 0||((Rt=xt.split("/"))===null||Rt===void 0)?void 0:Rt[2]},[]);var bi=function(){var xt=Object(j.a)(z.a.mark(function Rt(){var et,Pt,bt=arguments;return z.a.wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return et=bt.length>0&&bt[0]!==void 0?bt[0]:{},Mt.next=3,Object(D.b)({id:In.myshixun.identifier,message:et.commitMessage,content:et.codeMirror,path:(at.defaultPath?at.defaultPath+"/":"")+et.path,secret_repository:rt?void 0:!0});case 3:Pt=Mt.sent,(Pt==null?void 0:Pt.status)===0&&(g.b.success("\u6DFB\u52A0\u6210\u529F"),at.onOK({path:(at.defaultPath?at.defaultPath+"/":"")+et.path,name:et.path.split("/")[et.path.split("/").length-1]}),Ve());case 5:case"end":return Mt.stop()}},Rt)}));return function(){return xt.apply(this,arguments)}}(),wn=function(){var Rt,et;M.d.push("/shixuns/".concat(kt.current,"/").concat((Rt=Ye.pathname)===null||Rt===void 0||((et=Rt.split("/"))===null||et===void 0)?void 0:et[3]).concat(lt?"/master/shixun_show/".concat(lt):""))};return R.a.createElement(E.a,{width:"60%",visible:at.visible,wrapClassName:me.a.modal,centered:!0,onOk:function(){un.submit()},onCancel:Ve,title:"\u65B0\u5EFA\u6587\u4EF6"},R.a.createElement("section",{className:me.a.bg},R.a.createElement("div",{className:me.a.wrap},R.a.createElement(G.a,{className:"mt10",form:un,scrollToFirstError:!0,layout:"vertical",onFinish:bi,onChange:function(){var Rt,et,Pt=Object(P.a)({},un.getFieldsValue()),bt=Pt==null||((Rt=Pt.path)===null||Rt===void 0)?void 0:Rt.split("");(bt==null||((et=bt.filter(function(mt){return mt=="/"}))===null||et===void 0)?void 0:et.length)>1&&(Pt.path=Pt.path.substring(0,Pt.path.length-1)),un.setFieldsValue(Object(P.a)({},Pt)),Ot(Pt)}},R.a.createElement(G.a.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A",name:"path"},R.a.createElement(ie.a,null,R.a.createElement(ae.a,null,R.a.createElement("span",{className:me.a.filePath},at.defaultPath+"/")),R.a.createElement(ae.a,{flex:"1"},R.a.createElement(G.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},R.a.createElement(Ae.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large"}))))),R.a.createElement(G.a.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"}]},R.a.createElement(Ae.a,{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",size:"large"})),R.a.createElement("div",{className:"mt10 mb20"},R.a.createElement(G.a.Item,{name:"codeMirror",label:"\u6587\u4EF6\u5185\u5BB9\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},R.a.createElement(S.a,{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"]}})))))))},k=Object(M.a)(function(ht){var We=ht.shixunsDetail,pt=ht.loading,Dt=ht.globalSetting,Ht=ht.user;return{shixunsDetail:We,globalSetting:Dt,user:Ht,loading:pt.models.index}})(Y),pe=function(We){var pt=We.shixunsDetail,Dt=We.globalSetting,Ht=We.loading,Ut=We.user,In=We.dispatch,ln=We.isRepository,rt=We.taskData,Ve=Object(H.a)(We,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository","taskData"]),at=Object(xe.h)(),Ye=Object(P.a)(Object(P.a)({},Object(xe.i)()),Object(xe.h)().query),Ct=Object(y.useState)({}),Ge=Object(te.a)(Ct,2),ze=Ge[0],Zt=Ge[1],Ot=Object(y.useRef)(),kt=G.a.useForm(),Nt=Object(te.a)(kt,1),Kt=Nt[0],un=Object(y.useState)(""),Hn=Object(te.a)(un,2),je=Hn[0],lt=Hn[1],Un=Object(y.useState)(""),bi=Object(te.a)(Un,2),wn=bi[0],xt=bi[1];Object(y.useEffect)(function(){Ve.visible&&Kt.resetFields()},[Ve.visible]),Object(y.useEffect)(function(){var Pt=Ve.defaultPath.split("/");Pt.length===1?(lt(""),xt(Ve.defaultPath)):(xt(Pt.pop()),lt(Pt.join("/")+"/"))},[Ve.defaultPath]),Object(y.useEffect)(function(){var Pt,bt;Ot.current=(Pt=at.pathname)===null||Pt===void 0||((bt=Pt.split("/"))===null||bt===void 0)?void 0:bt[2]},[]);var Rt=function(){var Pt=Object(j.a)(z.a.mark(function bt(){var mt,Mt,Gn,yn=arguments;return z.a.wrap(function(rn){for(;;)switch(rn.prev=rn.next){case 0:return Mt=yn.length>0&&yn[0]!==void 0?yn[0]:{},rn.next=3,Object(D.w)({id:rt==null||((mt=rt.shixun)===null||mt===void 0)?void 0:mt.identifier,from:Ve.defaultPath,to:je+Mt.path,message:Mt.commitMessage||"".concat(Ve.defaultPath," rename to ").concat(je).concat(Mt.path," ")});case 3:Gn=rn.sent,(Gn==null?void 0:Gn.status)===0&&(g.b.success("\u64CD\u4F5C\u6210\u529F"),Ve.onOK({path:Mt.path,name:Mt.path}),Ve.onClose());case 5:case"end":return rn.stop()}},bt)}));return function(){return Pt.apply(this,arguments)}}(),et=function(){var bt,mt;M.d.push("/shixuns/".concat(Ot.current,"/").concat((bt=at.pathname)===null||bt===void 0||((mt=bt.split("/"))===null||mt===void 0)?void 0:mt[3]).concat(je?"/master/shixun_show/".concat(je):""))};return R.a.createElement(E.a,{width:"40%",visible:Ve.visible,wrapClassName:me.a.modal,centered:!0,onOk:function(){Kt.submit()},onCancel:Ve.onClose,title:"\u63D0\u4EA4\u8BF4\u660E"},R.a.createElement("section",{className:me.a.bg},R.a.createElement("div",{className:me.a.wrap},R.a.createElement(G.a,{className:"mt10",form:Kt,scrollToFirstError:!0,layout:"vertical",onFinish:Rt,onChange:function(){var bt,mt,Mt=Object(P.a)({},Kt.getFieldsValue()),Gn=Mt==null||((bt=Mt.path)===null||bt===void 0)?void 0:bt.split("");(Gn==null||((mt=Gn.filter(function(yn){return yn=="/"}))===null||mt===void 0)?void 0:mt.length)>1&&(Mt.path=Mt.path.substring(0,Mt.path.length-1)),Kt.setFieldsValue(Object(P.a)({},Mt)),Zt(Mt)}},R.a.createElement(G.a.Item,{label:"\u91CD\u547D\u540D\uFF1A",name:"path"},R.a.createElement(ie.a,null,R.a.createElement(ae.a,{flex:"1"},R.a.createElement(G.a.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},R.a.createElement(Ae.a,{placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0",size:"large",defaultValue:wn}))))),R.a.createElement(G.a.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage"},R.a.createElement(Ae.a,{placeholder:"\u5982\u4E0D\u586B\u5199\uFF0C\u9ED8\u8BA4\u63D0\u4EA4\u4FE1\u606F\u662F\uFF08".concat(Ve.defaultPath," rename to \u65B0\u7684\u540D\u79F0 \uFF09"),size:"large"}))))))},Me=Object(M.a)(function(ht){var We=ht.shixunsDetail,pt=ht.loading,Dt=ht.globalSetting,Ht=ht.user;return{shixunsDetail:We,globalSetting:Dt,user:Ht,loading:pt.models.index}})(pe),ce=s("DZo9"),Ce=s("8z0m"),Fe=s("m3rI"),U=s("8j3D"),we=s("25Vc"),Ne=s.n(we),ke=Ce.a.Dragger,$e=function(We){var pt,Dt=We.shixunsDetail,Ht=We.globalSetting,Ut=We.loading,In=We.user,ln=We.taskData,rt=We.dispatch,Ve=We.isRepository,at=Object(H.a)(We,["shixunsDetail","globalSetting","loading","user","taskData","dispatch","isRepository"]),Ye=Object(xe.h)(),Ct=Object(P.a)(Object(P.a)({},Object(xe.i)()),Object(xe.h)().query),Ge=Object(y.useState)({}),ze=Object(te.a)(Ge,2),Zt=ze[0],Ot=ze[1],kt=Object(y.useRef)(),Nt=G.a.useForm(),Kt=Object(te.a)(Nt,1),un=Kt[0],Hn=Object(y.useState)([]),je=Object(te.a)(Hn,2),lt=je[0],Un=je[1],bi=Object(y.useState)(),wn=Object(te.a)(bi,2),xt=wn[0],Rt=wn[1],et;Object(y.useEffect)(function(){at.visible&&(un.resetFields(),Un([]))},[at.visible]),Object(y.useEffect)(function(){kt.current=Ct.id},[]),Object(y.useEffect)(function(){var yn=sessionStorage.getItem("pathArray");if(yn){var Jt=yn.split(",").join("/"),rn=Jt.indexOf("/")===0?Jt.substr(1):Jt;Rt(rn)}},[]);var Pt=function(Jt){if(et=Jt.file.name,Jt.file.status==="done"||Jt.file.status==="uploading"){var rn,fi,Kn;if(Un(Jt.fileList),!Jt.file.response)return;if(((rn=Jt.file.response)===null||rn===void 0?void 0:rn.status)===0){g.b.success("\u4E0A\u4F20\u6210\u529F\uFF01");return}Un(lt.filter(function(ti){return ti.uid!==Jt.file.uid})),((fi=Jt.file.response)===null||fi===void 0?void 0:fi.message)&&g.b.info((Kn=Jt.file.response)===null||Kn===void 0?void 0:Kn.message)}},bt=function(){var yn=Object(j.a)(z.a.mark(function Jt(rn){var fi;return z.a.wrap(function(ti){for(;;)switch(ti.prev=ti.next){case 0:if(rn.response){ti.next=3;break}return g.b.info("\u8FD8\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u65E0\u6CD5\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\uFF01"),ti.abrupt("return");case 3:return ti.next=5,rt({type:"shixunsDetail/deleteGitFile",payload:{id:Ct.id,path:xt?"".concat(xt,"/").concat(rn.name):rn.name,message:un.getFieldValue("commitMessage")||"\u5220\u9664\u4E86".concat(xt?"".concat(xt,"/").concat(rn.name):rn.name),secret_repository:Ve?null:!0}});case 5:fi=ti.sent,fi.status===0&&(Un(lt.filter(function(Fn){return Fn.uid!==rn.uid})),g.b.info("\u5220\u9664\u6210\u529F"));case 7:case"end":return ti.stop()}},Jt)}));return function(rn){return yn.apply(this,arguments)}}(),mt={height:300,multiple:!0,withCredentials:!0,data:function(){var yn=Object(j.a)(z.a.mark(function rn(){return z.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Kn.abrupt("return",new Promise(function(){var ti=Object(j.a)(z.a.mark(function Fn(hn,cn){return z.a.wrap(function(tn){for(;;)switch(tn.prev=tn.next){case 0:setTimeout(Object(j.a)(z.a.mark(function Ci(){var kn,Qn;return z.a.wrap(function(pi){for(;;)switch(pi.prev=pi.next){case 0:return pi.next=2,un.getFieldsValue();case 2:kn=pi.sent,Qn=Object(P.a)(Object(P.a)({},{path:at.defaultPath?at.defaultPath:"",message:Zt.commitMessage||"\u4E0A\u4F20\u4E86".concat(et)}),Ve?{}:{secret_repository:!0}),hn(Qn);case 5:case"end":return pi.stop()}},Ci)})),200);case 1:case"end":return tn.stop()}},Fn)}));return function(Fn,hn){return ti.apply(this,arguments)}}()));case 1:case"end":return Kn.stop()}},rn)}));function Jt(){return yn.apply(this,arguments)}return Jt}(),fileList:lt,method:"post",action:"".concat(Fe.a.API_SERVER,"/api/myshixuns/").concat(ln==null||((pt=ln.myshixun)===null||pt===void 0)?void 0:pt.identifier,"/upload_git_file.json"),onChange:Pt,onRemove:bt,beforeUpload:function(Jt){et=Jt.name}},Mt=function(){var yn=Object(j.a)(z.a.mark(function Jt(rn){return z.a.wrap(function(Kn){for(;;)switch(Kn.prev=Kn.next){case 0:return Kn.next=2,un.validateFields();case 2:at.onClose(),at.onOK({path:at.defaultPath}),Gn();case 5:case"end":return Kn.stop()}},Jt)}));return function(rn){return yn.apply(this,arguments)}}(),Gn=function(){};return R.a.createElement(E.a,{visible:at.visible,onOk:Mt,centered:!0,onCancel:at.onClose,width:"70%"},R.a.createElement("section",{className:Ne.a.bg},R.a.createElement("div",{className:Ne.a.wrap},R.a.createElement("div",{className:Ne.a.title},"\u4E0A\u4F20\u6587\u4EF6"),R.a.createElement(G.a,{className:"mt10",form:un,scrollToFirstError:!0,layout:"vertical",onFinish:Mt,onValuesChange:function(){return Ot(Object(P.a)({},un.getFieldsValue()))}},R.a.createElement(G.a.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"}]},R.a.createElement(Ae.a,{placeholder:"\u5FC5\u586B\uFF0C\u63CF\u8FF0\u4E3B\u8981\u4FEE\u6539\u5185\u5BB9\uFF08\u76F8\u5F53\u4E8EGit Commit message\u7684Header\uFF09"})),R.a.createElement(G.a.Item,{label:"\u9009\u62E9\u6587\u4EF6",name:"file",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6"}]},R.a.createElement(ke,mt,R.a.createElement("div",null,R.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat(Ne.a.colorBlue)})),R.a.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",R.a.createElement("span",{className:"".concat(Ne.a.colorBlue," ml5")},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))))),R.a.createElement(U.a,{onFinish:function(Jt){return Rt(Jt)}})))},Xe=Object(M.a)(function(ht){var We=ht.shixunsDetail,pt=ht.loading,Dt=ht.globalSetting,Ht=ht.user;return{shixunsDetail:We,globalSetting:Dt,user:Ht,loading:pt.models.index}})($e),st=s("aVK0"),Ze=s.n(st),yt=s("TXba"),At=s.n(yt),Lt=function(We){var pt=We.shixunsDetail,Dt=We.globalSetting,Ht=We.loading,Ut=We.dispatch,In=We.title,ln=We.pathList,rt=ln===void 0?[]:ln,Ve=We.showInputPath,at=Ve===void 0?!1:Ve,Ye=We.isMergeSelectFile,Ct=Ye===void 0?!1:Ye,Ge=We.onFinish,ze=Ge===void 0?function(){}:Ge,Zt=G.a.useForm(),Ot=Object(te.a)(Zt,1),kt=Ot[0],Nt=Object(P.a)(Object(P.a)({},Object(xe.i)()),Object(xe.h)().query),Kt=Object(xe.h)(),un=Object(y.useRef)(),Hn=Object(y.useState)(""),je=Object(te.a)(Hn,2),lt=je[0],Un=je[1],bi=Object(y.useState)(""),wn=Object(te.a)(bi,2),xt=wn[0],Rt=wn[1],et=Object(y.useState)([]),Pt=Object(te.a)(et,2),bt=Pt[0],mt=Pt[1],Mt=Object(y.useState)([]),Gn=Object(te.a)(Mt,2),yn=Gn[0],Jt=Gn[1];Object(y.useEffect)(function(){var hn,cn;un.current=((hn=Kt.pathname)===null||hn===void 0||((cn=hn.split("/"))===null||cn===void 0)?void 0:cn[3])==="repository"},[]),Object(y.useEffect)(function(){if(pt.actionTabs.key!=="Repository-SelectFilePath")return;var hn=rt.join("/"),cn=[];rt.map(function(fn,tn){tn===0?cn.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(fn),path:hn}):cn.push({val:"/".concat(fn),path:hn})}),mt(cn),Un(hn),Rt(hn),rn(hn)},[pt.actionTabs.key]);var rn=function(){var hn=Object(j.a)(z.a.mark(function cn(fn){var tn;return z.a.wrap(function(kn){for(;;)switch(kn.prev=kn.next){case 0:return kn.next=2,Ut({type:un.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:Nt.id,path:fn}});case 2:tn=kn.sent,tn&&Jt(tn.trees||[]);case 4:case"end":return kn.stop()}},cn)}));return function(fn){return hn.apply(this,arguments)}}(),fi=function(cn){var fn=lt;cn.type==="tree"&&(bt.length?bt.push({val:"/".concat(cn.name),path:cn.name}):bt.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(cn.name),path:cn.name}),mt(bt),fn=lt?"".concat(lt,"/").concat(cn.name):cn.name,Un(fn)),rn(fn)},Kn=function(cn,fn){var tn=bt.filter(function(kn,Qn){return Qn<=fn});mt(tn);var Ci=tn.filter(function(kn,Qn){return Qn!==0}).map(function(kn){return kn.val}).join("").substr(1);Un(Ci),rn(Ci)},ti=function(){var hn=Object(j.a)(z.a.mark(function cn(){var fn,tn,Ci;return z.a.wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(fn=kt==null?void 0:kt.getFieldsValue(),tn=lt?"".concat(lt).concat(fn!=null&&fn.name?"/".concat(fn==null?void 0:fn.name):""):fn==null?void 0:fn.name,!Ct){Qn.next=6;break}return ze(tn),Fn(),Qn.abrupt("return");case 6:if(!at){Qn.next=16;break}return Qn.next=9,kt.validateFields();case 9:return Qn.next=11,Ut({type:"shixunsDetail/uploadGitFolder",payload:Object(P.a)(Object(P.a)({},{id:Nt.id,path:tn}),un.current?{}:{secret_repository:!0})});case 11:Ci=Qn.sent,ze(xt),Ci.status===0&&g.b.info("\u65B0\u5EFA\u6210\u529F"),Qn.next=18;break;case 16:ze(tn),g.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:Fn();case 19:case"end":return Qn.stop()}},cn)}));return function(){return hn.apply(this,arguments)}}(),Fn=function(){Ut({type:"shixunsDetail/setActionTabs",payload:{}}),kt.resetFields()};return R.a.createElement(E.a,{centered:!0,title:In||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:pt.actionTabs.key==="Repository-SelectFilePath",onOk:ti,onCancel:Fn},R.a.createElement("div",{className:At.a.wrap},R.a.createElement("div",{className:At.a.content},R.a.createElement("div",{className:At.a.mainPathWrap},!!(bt!=null&&bt.length)&&bt.map(function(hn,cn){return R.a.createElement("a",{key:cn,onClick:function(){return Kn(hn,cn)}},hn.val)})),!!(yn!=null&&yn.length)&&yn.map(function(hn,cn){return hn.type==="tree"&&R.a.createElement("a",{key:cn,onClick:function(){return fi(hn)}},R.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(At.a.colorBlue)}),hn.name)})),R.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),R.a.createElement("div",{className:"mt5 mb5"},lt),at&&R.a.createElement(G.a,{form:kt,scrollToFirstError:!0,className:"mt20"},R.a.createElement(G.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},R.a.createElement(Ae.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))},qe=Object(M.a)(function(ht){var We=ht.shixunsDetail,pt=ht.loading,Dt=ht.globalSetting;return{shixunsDetail:We,globalSetting:Dt,loading:pt.models.index}})(Lt),Xn=s("GZ0F"),xn=s("8Skl"),Bt=s("HBuW"),ut=s("LvDl"),Wt=s("NLgs"),It=s("lzim"),pn=C.a.DirectoryTree,en=function(We){var pt,Dt,Ht,Ut=We.shixunsDetail,In=We.globalSetting,ln=We.loading,rt=We.user,Ve=We.activeKey,at=We.dispatch,Ye=We.taskData,Ct=We.practiceSetting,Ge=We.isRepository,ze=We.treeData,Zt=We.setTreeData,Ot=We.params,kt=Object(H.a)(We,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","taskData","practiceSetting","isRepository","treeData","setTreeData","params"]),Nt=Object(xe.h)(),Kt=Object(y.useState)(),un=Object(te.a)(Kt,2),Hn=un[0],je=un[1],lt=Object(y.useState)(!1),Un=Object(te.a)(lt,2),bi=Un[0],wn=Un[1],xt=Object(y.useState)(!1),Rt=Object(te.a)(xt,2),et=Rt[0],Pt=Rt[1],bt=Object(y.useState)(!1),mt=Object(te.a)(bt,2),Mt=mt[0],Gn=mt[1],yn=Object(y.useState)(!1),Jt=Object(te.a)(yn,2),rn=Jt[0],fi=Jt[1],Kn=Object(y.useState)(""),ti=Object(te.a)(Kn,2),Fn=ti[0],hn=ti[1],cn=Object(y.useState)([]),fn=Object(te.a)(cn,2),tn=fn[0],Ci=fn[1],kn=Object(y.useState)([]),Qn=Object(te.a)(kn,2),sr=Qn[0],pi=Qn[1],lr=Object(y.useState)([]),jr=Object(te.a)(lr,2),_a=jr[0],Vr=jr[1],sa=Object(y.useState)(!1),Ur=Object(te.a)(sa,2),Vi=Ur[0],En=Ur[1],vn=Object(y.useState)(),Zn=Object(te.a)(vn,2),Di=Zn[0],ur=Zn[1],xi=Object(y.useState)(),Bi=Object(te.a)(xi,2),Ji=Bi[0],Pn=Bi[1],Wi=Object(y.useState)(""),yr=Object(te.a)(Wi,2),Mi=yr[0],ya=yr[1],gr=Object(y.useState)(),vr=Object(te.a)(gr,2),Sr=vr[0],Xi=vr[1],la=Object(y.useState)(!1),Zi=Object(te.a)(la,2),Fr=Zi[0],Jr=Zi[1];Object(y.useEffect)(function(){Zt([]),qi(""),localStorage.warehouseHideTip||En(!0)},[Nt.pathname,Ge]),Object(y.useEffect)(function(){var wt;if(Ye!=null&&(wt=Ye.challenge)!==null&&wt!==void 0&&wt.path&&ze!==null&&ze!==void 0&&ze.length){var Be,ct,Je,_t=Ye==null||((Be=Ye.challenge)===null||Be===void 0||((ct=Be.path)===null||ct===void 0))?void 0:ct.replaceAll("\uFF1B",""),jt=(Je=Object(ut.cloneDeep)(ze))===null||Je===void 0?void 0:Je.filter(function(mn){var bn;return mn.name===(_t==null||((bn=_t.split("/"))===null||bn===void 0)?void 0:bn[0])});Cr(_t),(ze==null?void 0:ze.length)!==1&&(console.log(jt,"filterTreeData"),Zt(jt))}},[Ye==null||((pt=Ye.challenge)===null||pt===void 0)?void 0:pt.path,ze]);var Cr=function(Be){br(Be),sr=[Be],pi([Be])},Ya=function(){var wt=Object(j.a)(z.a.mark(function Be(){var ct,Je,_t=arguments;return z.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return ct=_t.length>0&&_t[0]!==void 0?_t[0]:"",mn.next=3,Object(Bt.Gb)({id:Ot.id,secret_dir_path:ct});case 3:Je=mn.sent,Je&&Xi(ct);case 5:case"end":return mn.stop()}},Be)}));return function(){return wt.apply(this,arguments)}}(),ua=function(Be){return R.a.createElement(W.a,{className:Ze.a.menu,onClick:function(Je){hn(Be.path||"");switch(Je.key){case"1":Object(se.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6"]),wn(!0);break;case"2":Object(se.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u65B0\u5EFA\u6587\u4EF6\u5939"]),Gn(!0);break;case"3":Object(se.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u4E0A\u4F20"]),fi(!0);break;case"4":Object(se.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u91CD\u547D\u540D"]),Pt(!0);break;case"5":Object(se.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u5220\u9664"]),Oa(Be.path,Be.name,Be);break;case"6":Object(se.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93","\u590D\u5236\u8DEF\u5F84"]),Ja(Be);break}}},(Be.type==="topTree"||Be.type==="tree")&&R.a.createElement(W.a.Item,{key:"1"},"\u65B0\u5EFA\u6587\u4EF6"),(Be.type==="topTree"||Be.type==="tree")&&R.a.createElement(W.a.Item,{key:"2"},"\u65B0\u5EFA\u6587\u4EF6\u5939"),(Be.type==="topTree"||Be.type==="tree")&&R.a.createElement(W.a.Item,{key:"3"},"\u4E0A\u4F20"),Be.type!=="topTree"&&Be.type!=="tree"&&R.a.createElement(W.a.Item,{key:"4"},"\u91CD\u547D\u540D"),Be.type!=="topTree"&&R.a.createElement(he.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(Ge?"":"secret/").concat(Be==null?void 0:Be.path),onCopy:function(){return g.b.success("\u590D\u5236\u6210\u529F")}},R.a.createElement(W.a.Item,{key:"6"},R.a.createElement(R.a.Fragment,null,"\u590D\u5236\u8DEF\u5F84"))),Be.type!=="topTree"&&R.a.createElement(W.a.Item,{key:"5"},"\u5220\u9664"))},Va=function(Be,ct){return Be.map(function(Je){return ct==""?Je.path=ct+Je.name:Je.path=ct+"/"+Je.name,Je.title=R.a.createElement(ie.a,{className:"font14"},R.a.createElement(ae.a,{flex:"1"},R.a.createElement(ie.a,null,R.a.createElement(ae.a,{flex:"20px"},Je.type==="blob"&&R.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),R.a.createElement(ae.a,{flex:"1"},R.a.createElement("span",{className:" multi_ellipsis1"},Je.name)))),R.a.createElement(ae.a,null,(Je.type==="blob"||Je.type==="tree")&&R.a.createElement(A.a,{overlay:ua(Je),className:Ze.a.ellipsis},R.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),Je.disableCheckbox=Hn&&Hn!==Je.name,Je.className=Je.type==="tree"?Ze.a.pl23:"",Je.checkable=Je.type!=="tree",Je.isLeaf=Je.type!=="tree",Je.children=Je.type==="tree"&&[],Je.key=Je.path,Je})},br=function(Be){at({type:"practiceSetting/setSideBarTabs",payload:{selectPath:Be}})},ca=function(){var wt=Object(j.a)(z.a.mark(function Be(ct,Je){var _t;return z.a.wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return _t=ct.split("/"),mn.next=3,qi(Fn);case 3:setTimeout(function(){br(ct),tn=[_t[0]||""],sr=[ct],pi(Object(u.a)(sr)),Ci(Object(u.a)(tn))},150);case 4:case"end":return mn.stop()}},Be)}));return function(ct,Je){return wt.apply(this,arguments)}}(),Ea=function(Be,ct){if(console.log(Be,"data"),ct=="")Zt(Object(u.a)(Be));else{var Je=Xr(ze,ct,Be);Zt(Object(u.a)(Je))}};function Xr(wt,Be,ct){return wt.map(function(Je){return Je.key===Be?(Je.children=Object(u.a)(ct),Object(P.a)({},Je)):Je.children?Object(P.a)(Object(P.a)({},Je),{},{children:Xr(Je.children,Be,ct)}):Je})}var qi=function(){var wt=Object(j.a)(z.a.mark(function Be(){var ct,Je,_t,jt,mn,bn,zn=arguments;return z.a.wrap(function(ii){for(;;)switch(ii.prev=ii.next){case 0:return Je=zn.length>0&&zn[0]!==void 0?zn[0]:"",console.log("location:",Nt),ii.next=4,Object(D.m)(Ye==null||((ct=Ye.myshixun)===null||ct===void 0)?void 0:ct.identifier,{path:Je});case 4:return _t=ii.sent,_t&&((jt=_t.trees)!==null&&jt!==void 0&&jt.length?(bn=Va(Object(u.a)(_t.trees),Je),Ea(bn,Je),Vr(_t.trees||[]),Pn((_t==null?void 0:_t.secret_dir_path)||""),console.log("handleGetRepository:",bn,Je),setTimeout(function(){return console.log(ze)},2e3)):Je==""&&Zt([]),ur(((mn=_t.commits)===null||mn===void 0?void 0:mn[0])||{})),ii.abrupt("return",_t);case 7:case"end":return ii.stop()}},Be)}));return function(){return wt.apply(this,arguments)}}(),Aa=function(){var wt=Object(j.a)(z.a.mark(function Be(ct){return z.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.abrupt("return",new Promise(function(){var jt=Object(j.a)(z.a.mark(function mn(bn,zn){return z.a.wrap(function(ii){for(;;)switch(ii.prev=ii.next){case 0:return ct.children.length&&bn(),ya(ct.path),ii.next=4,qi(ct.path);case 4:bn();case 5:case"end":return ii.stop()}},mn)}));return function(mn,bn){return jt.apply(this,arguments)}}()));case 1:case"end":return _t.stop()}},Be)}));return function(ct){return wt.apply(this,arguments)}}(),Oo=function(){var wt=Object(j.a)(z.a.mark(function Be(ct,Je){var _t,jt;return z.a.wrap(function(bn){for(;;)switch(bn.prev=bn.next){case 0:if(console.log("handleSelectTree",ct,Je.nativeEvent.target.nodeName,Je),_t=function(){br(Je.node.path),ct=[Je.node.path],pi(Object(u.a)(ct))},!(Je.nativeEvent.target.nodeName==="svg"||Je.nativeEvent.target.nodeName==="LI"||Je.nativeEvent.target.nodeName==="I")){bn.next=4;break}return bn.abrupt("return");case 4:Je.node.type==="blob"&&(Ct!=null&&(jt=Ct.sideBar)!==null&&jt!==void 0&&jt.confirmLeave?E.a.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:function(){_t(),at({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):_t());case 5:case"end":return bn.stop()}},Be)}));return function(ct,Je){return wt.apply(this,arguments)}}(),Oa=function(Be,ct,Je){E.a.confirm({centered:!0,title:"\u786E\u8BA4\u9700\u8981\u5220\u9664\u8BE5\u6587\u4EF6".concat(Je.children?"\u5939":"","?"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var _t=Object(j.a)(z.a.mark(function mn(){var bn,zn,Nn,ii;return z.a.wrap(function(Ri){for(;;)switch(Ri.prev=Ri.next){case 0:return Ri.next=2,Object(D.h)({id:Ye==null||((bn=Ye.myshixun)===null||bn===void 0)?void 0:bn.identifier,path:Be,message:"\u5220\u9664".concat(Be)});case 2:if(zn=Ri.sent,Nn=Be.split("/"),!((zn==null?void 0:zn.status)===0)){Ri.next=20;break}return g.b.info("\u5220\u9664\u6210\u529F"),Nn.splice(Nn.length-1,1),Ri.next=9,qi(Nn.length>1?Nn.join("/"):"");case 9:if(ii=Ri.sent,!(ii!=null&&ii.trees)){Ri.next=13;break}Ri.next=16;break;case 13:return Nn.splice(Nn.length-1,1),Ri.next=16,qi(Nn.length>1?Nn.join("/"):"");case 16:return br(""),Ri.abrupt("return",!0);case 20:(zn==null?void 0:zn.status)===-3&&E.a.info({title:"\u5220\u9664\u5931\u8D25",content:R.a.createElement("div",null,"\u8BE5\u6587\u4EF6\u201C",Be,"\u201D\u5DF2\u7ECF\u88AB\u4EFB\u52A1\u5173\u5361\u7684\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u6216\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u4EFB\u52A1\u5173\u5361\u4E2D\u8BC4\u6D4B\u8BBE\u7F6E\u7684\u6587\u4EF6\u8DEF\u5F84\u540E\u518D\u5220\u9664\u3002"),okText:"\u6211\u77E5\u9053\u4E86",onOk:function(){}});case 21:case"end":return Ri.stop()}},mn)}));function jt(){return _t.apply(this,arguments)}return jt}()})},Ja=function(Be){console.log(Be,"item")},wa=function(){var wt=Object(j.a)(z.a.mark(function Be(ct,Je){return z.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:if(console.log("handleExpand",Je),!(Je.nativeEvent.target.nodeName==="svg"||Je.nativeEvent.target.nodeName==="path"||Je.nativeEvent.target.nodeName==="LI")){jt.next=5;break}return jt.abrupt("return",!0);case 5:return jt.next=7,Aa(Je.node);case 7:tn.includes(Je.node.path)?tn.splice(tn.indexOf(Je.node.path),1):tn.push(Je.node.path);case 8:Ci(Object(u.a)(tn));case 9:case"end":return jt.stop()}},Be)}));return function(ct,Je){return wt.apply(this,arguments)}}(),xr=function(){En(!1),localStorage.warehouseHideTip=!0},Br=function(){var wt=Object(j.a)(z.a.mark(function Be(ct){var Je,_t,jt,mn,bn;return z.a.wrap(function(Nn){for(;;)switch(Nn.prev=Nn.next){case 0:jt="",Nn.t0=Ge,Nn.next=Nn.t0===!0?4:Nn.t0===!1?9:11;break;case 4:return jt="\u5F00\u542F\u7248\u672C\u5E93",mn="\u5F00\u542F",bn="\u4E0D\u5F00\u542F",_t=R.a.createElement("div",null,"\u65B0\u5EFA\u5B9E\u8DF5\u9898\u5173\u5361\u65F6\uFF0C\u9700\u8981\u4F7F\u7528\u4EE3\u7801\u4ED3\u5E93\uFF1B\u5982\u679C\u53EA\u6709\u9009\u62E9\u9898\u5173\u5361\uFF0C\u5219\u4E0D\u9700\u8981\u4EE3\u7801\u4ED3\u5E93\u3002\u4EE3\u7801\u4ED3\u5E93\u542F\u7528\u540E\uFF0C\u5C06\u65E0\u6CD5\u5173\u95ED\u3002"),Nn.abrupt("break",11);case 9:return Ut!=null&&(Je=Ut.detail)!==null&&Je!==void 0&&Je.secret_repository?(jt="\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",mn="\u786E\u5B9A",bn="\u53D6\u6D88",_t=R.a.createElement("div",null,"\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u540E\uFF0C\u5DF2\u521B\u5EFA\u7684\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u53CA\u5176\u5185\u5BB9\uFF0C\u5C06\u88AB\u5220\u9664\u3002\u786E\u8BA4\u8981\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\uFF1F")):(jt="\u5F00\u542F\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",mn="\u4E0D\u4F7F\u7528",bn="\u4F7F\u7528",_t=R.a.createElement("div",null,"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002\u9002\u7528\u4E8E\u547D\u4EE4\u884C\u3001\u56FE\u5F62\u5316\u684C\u9762\u4E24\u7C7B\u5B9E\u8BAD\uFF0C\u5176\u4ED6\u7C7B\u578B\u5B9E\u8BAD\u4E0D\u5EFA\u8BAE\u4F7F\u7528\u79C1\u5BC6\u7248\u672C\u5E93\u3002")),Nn.abrupt("break",11);case 11:if(!(!Ge&&Object(Wt.b)(at,"\u4E0D\u80FD\u5F00\u542F/\u5173\u95ED\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))){Nn.next=13;break}return Nn.abrupt("return");case 13:E.a.confirm({title:jt,okText:mn,cancelText:bn,content:_t,onOk:function(){var ar;Object(se.cb)(["\u5B9E\u8DF5\u9879\u76EE","\u8BBE\u7F6E","\u4EE3\u7801\u4ED3\u5E93",jt]),!Ge&&!(Ut!=null&&(ar=Ut.detail)!==null&&ar!==void 0&&ar.secret_repository)||Ta(ct)},onCancel:function(){var ar;!Ge&&!(Ut!=null&&(ar=Ut.detail)!==null&&ar!==void 0&&ar.secret_repository)&&Ta(ct)}});case 14:case"end":return Nn.stop()}},Be)}));return function(ct){return wt.apply(this,arguments)}}(),Ta=function(){var wt=Object(j.a)(z.a.mark(function Be(ct){return z.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(!Ge){_t.next=6;break}return _t.next=3,Object(Bt.r)(Object(P.a)({},Ot));case 3:at({type:"practiceSetting/getCommonData",payload:Object(P.a)({},Ot)}),_t.next=8;break;case 6:return _t.next=8,Object(Bt.t)(Object(P.a)(Object(P.a)({},Ot),{},{is_secret_repository:ct}));case 8:qi(),at({type:"shixunsDetail/getShixunsDetail",payload:{id:Ot.id}});case 10:case"end":return _t.stop()}},Be)}));return function(ct){return wt.apply(this,arguments)}}(),da=function(Be){console.log(Be)},Xa=function(){var wt=Object(j.a)(z.a.mark(function Be(ct){var Je,_t,jt,mn,bn,zn,Nn,ii,ar,Ri,Sa;return z.a.wrap(function(mi){for(;;)switch(mi.prev=mi.next){case 0:if(console.log(ct),Je=ct.node.key,_t=ct.dragNode.key,jt=ct.node.pos.split("-"),mn=ct.dropPosition-Number(jt[jt.length-1]),!(ct.node.type!=="tree"||ct.dragNode.path.split("/").length===1)){mi.next=8;break}return g.b.warn("\u672A\u79FB\u52A8\u6587\u4EF6\u76EE\u5F55\u4F4D\u7F6E"),mi.abrupt("return");case 8:return mi.next=10,at({type:"shixunsDetail/moveGitFile",payload:{id:Ot.id,from:ct.dragNode.path,to:ct.node.path+"/"+ct.dragNode.name,message:"".concat(ct.dragNode.path," move to ").concat(ct.node.path+"/"+ct.dragNode.name," ")}});case 10:if(bn=mi.sent,!(bn.status===0)){mi.next=22;break}return br(""),zn=ct.dragNode.path.split("/"),zn.pop(),mi.next=17,qi(ct.node.path);case 17:return mi.next=19,qi(zn.join("/"));case 19:return zn.pop(),mi.next=22,qi(zn.join("/"));case 22:return mi.abrupt("return");case 28:case"end":return mi.stop()}},Be)}));return function(ct){return wt.apply(this,arguments)}}();return R.a.createElement("section",{className:Ze.a.bg},R.a.createElement("div",{className:Ze.a.contentbg},R.a.createElement("div",{className:Ze.a.wrap},R.a.createElement(ie.a,{className:Ze.a.gitCode},R.a.createElement(ae.a,{flex:"1"},R.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),Ge?"\u4EE3\u7801\u4ED3\u5E93":"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),R.a.createElement(ae.a,null,R.a.createElement(A.a,{overlay:ua({type:"topTree"}),className:"current"},R.a.createElement(J.a,{visible:Vi,title:R.a.createElement("div",{className:"font16"},R.a.createElement(Xn.a,{style:{position:"relative",left:-35},onClick:function(){return xr()}}),"\u70B9\u51FB\u6B64\u5904\u65B0\u5EFA\u6587\u4EF6\u3001\u65B0\u5EFA\u6587\u4EF6\u5939\u3001\u4E0A\u4F20\u6587\u4EF6\u3002",R.a.createElement("span",{onClick:function(){return xr()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:Ze.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"})))),!!ze.length&&!Ge&&R.a.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},R.a.createElement("div",null,"\u5B9E\u8BAD\u8BC4\u6D4B\u7684\u65F6\u5019\uFF0C\u7CFB\u7EDF\u4F1A\u4E34\u65F6\u5C06\u79C1\u5BC6\u4EE3\u7801\u5E93\u79FB\u52A8\u666E\u901A\u4EE3\u7801\u5E93\u7684secret\u76EE\u5F55\u4E0B\u9762\uFF0C\u8BC4\u6D4B\u7ED3\u675F\u4F1A\u6E05\u7A7Asecret\u76EE\u5F55\u5185\u5BB9\u3002\u5982\u679C\u79C1\u5BC6\u4EE3\u7801\u5E93\u4E2D\u5B58\u5728\u6587\u4EF6src/test.sh\uFF0C\u5728\u666E\u901A\u4EE3\u7801\u5E93\u8C03\u7528\u8BE5\u6587\u4EF6\u5219\u4F7F\u7528\u8DEF\u5F84\uFF1Asecret/src/test.sh")),ze.length?R.a.createElement(R.a.Fragment,null,R.a.createElement("div",{className:Ze.a.content},R.a.createElement(pn,{disabled:!!ln.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:ze,switcherIcon:R.a.createElement(xn.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:wa,expandedKeys:tn,selectedKeys:sr,onSelect:Oo,draggable:!0,onDragEnter:da,onDrop:Xa,allowDrop:function(Be){var ct=Be.dropNode,Je=Be.dropPosition;return!1}}))):"",!ze.length&&Ge&&(Ut==null||((Dt=Ut.detail)===null||Dt===void 0)?void 0:Dt.init_repository)&&R.a.createElement(Rn,null),!ze.length&&!Ge&&(Ut==null||((Ht=Ut.detail)===null||Ht===void 0)?void 0:Ht.secret_repository)&&R.a.createElement(Rn,null))),R.a.createElement(Me,{taskData:Ye,visible:et,defaultPath:Fn,onClose:function(){return Pt(!1)},isRepository:!Ge,onOK:function(){var wt=Object(j.a)(z.a.mark(function Be(ct){var Je;return z.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return Je=Fn.split("/"),Je.pop(),jt.next=4,qi(Je.join("/"));case 4:br("");case 5:case"end":return jt.stop()}},Be)}));return function(Be){return wt.apply(this,arguments)}}()}),R.a.createElement(k,{taskData:Ye,visible:bi,defaultPath:Fn,onClose:function(){return wn(!1)},isRepository:Ge,onOK:function(Be){ca(Be.path,Be.name)}}),R.a.createElement(Oe,{taskData:Ye,visible:Mt,defaultPath:Fn,onClose:function(){return Gn(!1)},isRepository:Ge,onOK:function(Be){ca(Be.path,Be.name)}}),R.a.createElement(Xe,{taskData:Ye,defaultPath:Fn,visible:rn,isRepository:Ge,onClose:function(){return fi(!1)},onOK:function(){var wt=Object(j.a)(z.a.mark(function Be(ct){var Je;return z.a.wrap(function(jt){for(;;)switch(jt.prev=jt.next){case 0:return Je=Fn.split("/"),jt.next=3,qi(Fn);case 3:tn=[Je[0]||""],sr=[Fn],pi(Object(u.a)(sr)),Ci(Object(u.a)(tn));case 7:case"end":return jt.stop()}},Be)}));return function(Be){return wt.apply(this,arguments)}}()}),R.a.createElement(qe,{pathList:Fn==null?void 0:Fn.split("/"),showInputPath:!0,isMergeSelectFile:Fr,onFinish:function(Be){Fr?Ya(Be):qi(Be),Jr(!1)}}))},Rn=function(){return R.a.createElement("div",{className:"mt20 pb50 ".concat(Ze.a.nodata)},R.a.createElement("div",{className:Ze.a.headLeft},"\u63D0\u793A\uFF1A",R.a.createElement("br",null),"\u6B64\u5904\u5B58\u653E\u672C\u5B9E\u8BAD\u6240\u9700\u7684\u6240\u6709\u4EE3\u7801\u7B49\u76F8\u5173\u6587\u4EF6\uFF0C\u4F60\u53EF\u4EE5\u901A\u8FC7\u4EE5\u4E0B",R.a.createElement("br",null),"\u4E24\u79CD\u65B9\u5F0F\u6765\u4F7F\u7528\uFF1A",R.a.createElement("br",null),"1\u3001",R.a.createElement("a",{href:"/forums/2784",target:"_blank"},"Git\u5BA2\u6237\u7AEF")," ","\u4E0A\u4F20\u5DF2\u6709\u6587\u4EF6\u6765\u5F00\u59CB\u4F7F\u7528\u3002",R.a.createElement("br",null),"2\u3001\u76F4\u63A5\u5728\u5E73\u53F0\u4E0A\u521B\u5EFA\u6587\u4EF6\u76EE\u5F55\u4EE5\u53CA\u76F8\u5173\u4EE3\u7801\u6587\u4EF6\u3002"),R.a.createElement("img",{width:"100%",src:It.u}))},oi=Object(M.a)(function(ht){var We=ht.shixunsDetail,pt=ht.loading,Dt=ht.globalSetting,Ht=ht.practiceSetting,Ut=ht.user;return{shixunsDetail:We,globalSetting:Dt,user:Ut,practiceSetting:Ht,loading:pt}})(en),On=s("/zsF"),si=s("PArb"),Ti=s("5GGG"),li=s.n(Ti),ir=function(We){var pt=We.shixunsDetail,Dt=We.globalSetting,Ht=We.loading,Ut=We.user,In=We.dispatch,ln=We.isRepository,rt=Object(H.a)(We,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Ve=Object(P.a)(Object(P.a)({},Object(xe.i)()),Object(xe.h)().query),at=Object(y.useState)([]),Ye=Object(te.a)(at,2),Ct=Ye[0],Ge=Ye[1];Object(y.useEffect)(function(){ze()},[ln]);var ze=function(){var Zt=Object(j.a)(z.a.mark(function Ot(){var kt;return z.a.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Kt.next=2,In({type:"shixunsDetail/getRepositoryCommit",payload:{id:Ve.id,secret_repository:ln?void 0:!0}});case 2:kt=Kt.sent,kt&&Ge(kt.commits||[]);case 4:case"end":return Kt.stop()}},Ot)}));return function(){return Zt.apply(this,arguments)}}();return R.a.createElement(R.a.Fragment,null,Ct==""&&R.a.createElement("div",{className:li.a.empty},R.a.createElement("img",{src:It.k,width:"258"}),R.a.createElement("br",null),R.a.createElement("span",{className:"c-grey-c font14"},"\u6682\u65E0\u63D0\u4EA4\u8BB0\u5F55")),Ct!=""&&R.a.createElement("section",{className:li.a.bg},R.a.createElement("div",{className:li.a.wrap},R.a.createElement("div",{className:li.a.content},Ct==null?void 0:Ct.map(function(Zt){var Ot,kt;return R.a.createElement("div",null,R.a.createElement(ie.a,{align:"middle",className:"c-white font16"},R.a.createElement(ae.a,null,Zt.title)),R.a.createElement(ie.a,{align:"middle",className:"mt20 "},R.a.createElement(ae.a,null,R.a.createElement("img",{className:li.a.imageUrl,src:Fe.a.IMG_SERVER+"/"+((Ot=Zt.author)===null||Ot===void 0?void 0:Ot.image_url)})),R.a.createElement(ae.a,{className:li.a.blueLight},R.a.createElement("span",{className:"ml20"},(kt=Zt.author)===null||kt===void 0?void 0:kt.username)),R.a.createElement(ae.a,null,R.a.createElement("span",{className:"ml20 ".concat(li.a.blueLight)},"\u63D0\u4EA4\u4E8E"),R.a.createElement("span",{className:"ml20 ".concat(li.a.blueLight)},Zt.time))),R.a.createElement(si.a,{className:li.a.divider}))})))))},rr=Object(M.a)(function(ht){var We=ht.shixunsDetail,pt=ht.loading,Dt=ht.globalSetting,Ht=ht.user;return{shixunsDetail:We,globalSetting:Dt,user:Ht,loading:pt.models.index}})(ir),Yi=s("p5ED"),Pi=ye.a.TabPane,Si=function(We){var pt,Dt,Ht,Ut,In,ln,rt=We.globalSetting,Ve=We.loading,at=We.dispatch,Ye=We.practiceSetting,Ct=We.shixunsDetail,Ge=We.taskData,ze=We.taskId,Zt=We.onEditRepCode,Ot=Object(H.a)(We,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail","taskData","taskId","onEditRepCode"]),kt=!(Ge!=null&&Ge.is_last_game)&&((Ge==null?void 0:Ge.shixun.status)>0||(Ge==null||((pt=Ge.user)===null||pt===void 0)?void 0:pt.identity)<5),Nt=Object(y.useState)("1"),Kt=Object(te.a)(Nt,2),un=Kt[0],Hn=Kt[1],je=Object(y.useState)("1"),lt=Object(te.a)(je,2),Un=lt[0],bi=lt[1],wn=Object(y.useState)(!0),xt=Object(te.a)(wn,2),Rt=xt[0],et=xt[1],Pt=Object(y.useState)({}),bt=Object(te.a)(Pt,2),mt=bt[0],Mt=bt[1],Gn=Object(y.useRef)(),yn=Object(y.useState)(!0),Jt=Object(te.a)(yn,2),rn=Jt[0],fi=Jt[1],Kn=Object(y.useState)(["2","1"]),ti=Object(te.a)(Kn,2),Fn=ti[0],hn=ti[1],cn=Object(y.useState)([]),fn=Object(te.a)(cn,2),tn=fn[0],Ci=fn[1],kn=Object(y.useRef)(),Qn=Object(P.a)(Object(P.a)({},Object(xe.i)()),{},{taskId:ze}),sr=Object(y.useState)(!1),pi=Object(te.a)(sr,2),lr=pi[0],jr=pi[1],_a=[{id:"1",name:"\u4EE3\u7801\u4ED3\u5E93"},{id:"2",name:R.a.createElement("span",null,R.a.createElement("span",null,"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"),R.a.createElement(J.a,{title:"\u79C1\u5BC6\u7248\u672C\u5E93\u7684\u6587\u4EF6\u5BF9\u5B66\u5458\u59CB\u7EC8\u9690\u85CF\uFF0C\u65E0\u6CD5\u8BBF\u95EE\u67E5\u770B\u3002"},R.a.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];Object(y.useEffect)(function(){var En,vn=Ye==null||((En=Ye.sideBar)===null||En===void 0)?void 0:En.selectPath.split("/");hn(vn)},[Ye==null||((Dt=Ye.sideBar)===null||Dt===void 0)?void 0:Dt.selectPath]);var Vr=function(vn){vn.data==="compileResltDone"&&jr(!1)};Object(y.useEffect)(function(){return window.addEventListener("message",Vr),function(){window.removeEventListener("message",Vr)}},[]);var sa=function(vn){(mt==null?void 0:mt.file_type)==="txt"&&(mt.content=vn,Mt(Object(P.a)({},mt)),Zt(vn))};Object(y.useEffect)(function(){var En;console.log(Ye==null||((En=Ye.sideBar)===null||En===void 0)?void 0:En.selectPath,"sideBar"),new Promise(function(){var vn=Object(j.a)(z.a.mark(function Zn(Di,ur){var xi,Bi,Ji,Pn,Wi,yr,Mi;return z.a.wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:if(!((Ye==null||((xi=Ye.sideBar)===null||xi===void 0)?void 0:xi.selectPath)!==""&&Ye!==null&&Ye!==void 0&&(Bi=Ye.sideBar)!==null&&Bi!==void 0&&Bi.selectPath)){gr.next=5;break}return gr.next=3,Object(D.j)(ze,{path:Ye==null||((Ji=Ye.sideBar)===null||Ji===void 0)?void 0:Ji.selectPath});case 3:if(Pn=gr.sent,Pn!=null&&Pn.content||(Pn==null?void 0:Pn.content)=="")try{(Pn==null?void 0:Pn.file_type)==="txt"?(Pn.content=window.decodeURIComponent(escape(window.atob((Wi=Pn.content)===null||Wi===void 0?void 0:Wi.content))),Mt(Object(P.a)({},Pn))):(Pn.content=(yr=Pn.content)===null||yr===void 0?void 0:yr.content,Mt(Object(P.a)({},Pn)))}catch(vr){mt.content&&(Pn.content=window.atob((Mi=Pn.content)===null||Mi===void 0?void 0:Mi.content)),Mt(Object(P.a)({},Pn)),g.b.warn("\u8BF7\u786E\u8BA4\u6587\u4EF6\u5B57\u7B26\u96C6\u7F16\u7801\u662F\u5426\u4E3AUTF-8")}else at({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return gr.stop()}},Zn)}));return function(Zn,Di){return vn.apply(this,arguments)}}())},[Ye==null||((Ht=Ye.sideBar)===null||Ht===void 0)?void 0:Ht.selectPath]);var Ur=R.a.createElement(W.a,{className:K.a.menu,onClick:function(vn){var Zn;!(Ct!=null&&(Zn=Ct.detail)!==null&&Zn!==void 0&&Zn.secret_repository)&&vn.key==="2"&&bi("1"),Hn(vn.key),vn.key==="1"?fi(!0):fi(!1)}},R.a.createElement(W.a.Item,{disabled:!0,key:"0"},"\u5207\u6362\u4ED3\u5E93"),_a.filter(function(En){var vn,Zn;return!(Ct!=null&&(vn=Ct.detail)!==null&&vn!==void 0&&vn.init_repository)||Ct!=null&&(Zn=Ct.detail)!==null&&Zn!==void 0&&Zn.is_jupyter_lab?En.id!=="2":En}).map(function(En,vn){return R.a.createElement(W.a.Item,{className:"leaveClick",key:En.id},En.name)})),Vi=function(){var En=Object(j.a)(z.a.mark(function vn(){var Zn,Di,ur,xi,Bi,Ji;return z.a.wrap(function(Wi){for(;;)switch(Wi.prev=Wi.next){case 0:return jr(!0),Wi.next=3,Object(D.L)(Ge==null||((Zn=Ge.myshixun)===null||Zn===void 0)?void 0:Zn.identifier,Object(P.a)(Object(P.a)({path:Ye==null||((Di=Ye.sideBar)===null||Di===void 0)?void 0:Di.selectPath},mt),{},{evaluate:0,game_id:Ge==null||((ur=Ge.game)===null||ur===void 0)?void 0:ur.id}));case 3:Ji=Wi.sent,(xi=document.getElementById("latexIframeRef"))===null||xi===void 0||((Bi=xi.contentWindow)===null||Bi===void 0)||Bi.postMessage("compile","*"),Ji!=null&&Ji.content&&at({type:"practiceSetting/setSideBarTabs",payload:Object(P.a)(Object(P.a)({},Ye.sideBar),{},{confirmLeave:!1})});case 6:case"end":return Wi.stop()}},vn)}));return function(){return En.apply(this,arguments)}}();return R.a.createElement("div",{className:K.a.warehouse},R.a.createElement("div",{className:K.a.content},Un==="1"&&R.a.createElement(R.a.Fragment,null,R.a.createElement("aside",{className:K.a.left,id:"latex-drawer",style:{width:Rt?"36%":"0%"}},R.a.createElement(p.a,{spinning:!!Ve.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(K.a.loading," ").concat(K.a.bottom0)},R.a.createElement(oi,{taskData:Ge,params:Qn,setTreeData:Ci,treeData:tn,activeKey:un,isRepository:rn})),R.a.createElement("span",{onClick:function(){return et(!1)},className:"".concat(K.a.close," iconfont icon-quxiao")})),R.a.createElement("aside",{className:K.a.right,ref:kn},(Ye==null||((Ut=Ye.sideBar)===null||Ut===void 0)?void 0:Ut.selectPath)!==""&&R.a.createElement(R.a.Fragment,null,R.a.createElement(p.a,{spinning:!!Ve.effects["shixunsDetail/getFileContent"],wrapperClassName:K.a.loading},R.a.createElement("div",{className:K.a.filePathWrp},R.a.createElement(ie.a,{align:"middle",className:"w100"},R.a.createElement(ae.a,null,R.a.createElement("span",{onClick:function(){return et(!0)},className:"iconfont icon-daimacangku2 c-white current"})),R.a.createElement(ae.a,{flex:"40px"},R.a.createElement("div",{className:K.a.line,style:{marginLeft:20}})),R.a.createElement(ae.a,{className:K.a.filePath},Fn.map(function(En,vn){return R.a.createElement("span",{className:"c-blue"},En)})))),R.a.createElement("div",{className:Ve.effects["shixunsDetail/getFileContent"]?"hide":"show"},R.a.createElement(Yi.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute"},filename:mt.filename,type:mt.file_type==="office"?"download":mt.file_type,data:mt.content,monacoEditor:{value:mt.content,language:mt.language,onChange:function(vn){return sa(vn)},options:{fontSize:14,minimap:{enabled:!1}}}}))),(mt==null?void 0:mt.file_type)==="txt"&&R.a.createElement("div",{className:K.a.footer},(Ge==null?void 0:Ge.prev_game)&&R.a.createElement("a",{href:"/tasks/".concat(Ge==null?void 0:Ge.prev_game).concat(location.search),style:{marginRight:"auto"},onClick:function(vn){vn.preventDefault(),setTimeout(function(){return window.location.href="/tasks/".concat(Ge==null?void 0:Ge.prev_game).concat(location.search)},300)}},"\u4E0A\u4E00\u5173"),R.a.createElement(d.a,{type:"primary",size:"large",loading:lr,onClick:Vi},"\u5F00\u59CB\u7F16\u8BD1"),kt&&R.a.createElement("a",{href:"/tasks/".concat(Ge==null?void 0:Ge.next_game).concat(location.search),style:{marginLeft:"auto"},onClick:function(vn){var Zn,Di;if(vn.preventDefault(),Ge!=null&&(Zn=Ge.shixun)!==null&&Zn!==void 0&&Zn.task_pass||(Ge==null?void 0:Ge.game.status)===2||(Ge==null||((Di=Ge.user)===null||Di===void 0)?void 0:Di.identity)<5){setTimeout(function(){return window.location.href="/tasks/".concat(Ge==null?void 0:Ge.next_game).concat(location.search)},300);return}E.a.warning({centered:!0,width:530,title:"\u63D0\u793A",okText:"\u6211\u77E5\u9053\u4E86",content:R.a.createElement("p",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u8BBE\u7F6E\u4E86\u4E0D\u5141\u8BB8\u8DF3\u5173\u3002\u901A\u8FC7\u5F53\u524D\u5173\u5361\u540E\uFF0C\u624D\u80FD\u8FDB\u5165\u4E0B\u4E00\u5173\u3002")})}},"\u4E0B\u4E00\u5173"))),(Ye==null||((In=Ye.sideBar)===null||In===void 0)?void 0:In.selectPath)==""&&(Ct==null||((ln=Ct.detail)===null||ln===void 0)?void 0:ln.init_repository)&&R.a.createElement("div",{className:K.a.empty},R.a.createElement("img",{src:It.j,width:"258"}),R.a.createElement("br",null),R.a.createElement("span",{className:"c-grey-c"},!!(tn!=null&&tn.length)&&"\u5728\u5DE6\u4FA7\u4EE3\u7801\u4ED3\u5E93\u533A\u57DF\u70B9\u51FB\u76EE\u5F55\u6253\u5F00\u6587\u4EF6",!(tn!=null&&tn.length)&&"\u8BF7\u5148\u5728\u5DE6\u4FA7\u4E0A\u4F20\u6587\u4EF6\u6216\u65B0\u5EFA\u6587\u4EF6\uFF01")))),Un==="2"&&R.a.createElement("div",{className:K.a.commit},R.a.createElement(rr,{isRepository:rn}))))},hi=Object(M.a)(function(ht){var We=ht.loading,pt=ht.globalSetting,Dt=ht.practiceSetting,Ht=ht.shixunsDetail;return{globalSetting:pt,loading:We,practiceSetting:Dt,shixunsDetail:Ht}})(Si),mr=L.default=function(ht){var We=ht.taskId,pt=ht.taskData,Dt=ht.onEditRepCode,Ht=Object(y.useRef)(),Ut=Object(y.useRef)(),In=Object(y.useMemo)(function(){if(pt){var ln,rt,Ve,at,Ye,Ct=pt==null||((ln=pt.challenge)===null||ln===void 0||((rt=ln.path)===null||rt===void 0||((Ve=rt.replace("\uFF1B",";"))===null||Ve===void 0)))?void 0:Ve.split(";")[0];return"https://latexjs.educoder.net/index.html?id=".concat(pt==null||((at=pt.shixun)===null||at===void 0)?void 0:at.identifier,"&path=").concat(Ct,"&taskId=").concat(We,"&myshixunId=").concat(pt==null||((Ye=pt.myshixun)===null||Ye===void 0)?void 0:Ye.identifier,"&token=").concat(Object(se.F)("_educoder_session"))}},[pt]);return R.a.createElement(ie.a,{style:{height:"100vh"},ref:Ut},R.a.createElement(ae.a,{flex:"1"},(pt==null?void 0:pt.shixun)&&R.a.createElement(hi,{taskId:We,taskData:pt,onEditRepCode:Dt})),R.a.createElement(ae.a,{flex:"1",className:N.a.wrap},R.a.createElement("iframe",{ref:Ht,id:"latexIframeRef",style:{width:"100%",border:"none",height:"100%"},src:In}),R.a.createElement("span",{className:N.a.full,onClick:function(){Object(ue.a)()?Object(ue.b)():Object(ue.d)(Ut.current)}},R.a.createElement("span",{className:"iconfont icon-quanping mr5 font12"}),"\u5168\u5C4F / \u9000\u51FA\u5168\u5C4F")))}},"4qgm":function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxs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VlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"5DcX":function(De,L,s){De.exports={flex_box_center:"flex_box_center___ITCrt",flex_space_between:"flex_space_between___miKTU",flex_box_vertical_center:"flex_box_vertical_center___21Sc2",flex_box_center_end:"flex_box_center_end___3G7O1",flex_box_column:"flex_box_column___2UQvZ",menu:"menu___3WFLo",warehouse:"warehouse___2PwKB",header:"header___Sod9H",title:"title___1Y3oM",content:"content___1E7ip",left:"left___2pmQt",close:"close___37Pej",right:"right___1JM70",loading:"loading___2h7Lc",empty:"empty___2PqJB",tabs:"tabs___zn34y",line:"line___2Ft7K",footer:"footer___cQjHk",commit:"commit___1TgxV",blueLight:"blueLight___a6l-z",filePathWrp:"filePathWrp___104JD",filePath:"filePath___21Vqm",bottom0:"bottom0___3wcE2"}},"5GGG":function(De,L,s){De.exports={flex_box_center:"flex_box_center___jZegZ",flex_space_between:"flex_space_between___LWg4q",flex_box_vertical_center:"flex_box_vertical_center___29tJ6",flex_box_center_end:"flex_box_center_end___21Gx8",flex_box_column:"flex_box_column___1Vfub",commitWrap:"commitWrap___1Pjn4",wrap:"wrap___2rrrf",colorGray:"colorGray___qLOU5",content:"content___26EBx",itemTime:"itemTime___sQDA2",imageUrl:"imageUrl___29qPZ",blueLight:"blueLight___WsUcs",divider:"divider___1Yxuo",empty:"empty___1tN2T"}},"5VLF":function(De,L,s){"use strict";var re,ie;function Ie(ae,y,R){var ue=function(se,a){return ae.js_beautify(se,a)};return ue.js=ae.js_beautify,ue.css=y.css_beautify,ue.html=R.html_beautify,ue.js_beautify=ae.js_beautify,ue.css_beautify=y.css_beautify,ue.html_beautify=R.html_beautify,ue}!(re=[s("6UM0"),s("TXwP"),s("psGv")],ie=function(ae,y,R){return Ie(ae,y,R)}.apply(L,re),ie!==void 0&&(De.exports=ie))},"5Y4S":function(De,L,s){"use strict";s.d(L,"a",function(){return Ie});var re=s("MNsG");const ie=re.b.performance&&typeof re.b.performance.now=="function";class Ie{constructor(ae){this._highResolution=ie&&ae,this._startTime=this._now(),this._stopTime=-1}static create(ae=!0){return new Ie(ae)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?re.b.performance.now():Date.now()}}},"6UM0":function(De,L,s){var re,ie;(function(){var Ie;(function(){"use strict";var y=[function(a,N,I){var E=I(1).Beautifier,f=I(5).Options;function d(h,p){var T=new E(h,p);return T.beautify()}a.exports=d,a.exports.defaultOptions=function(){return new f}},function(a,N,I){var E=I(2).Output,f=I(3).Token,d=I(4),h=I(5).Options,p=I(7).Tokenizer,T=I(7).line_starters,W=I(7).positionable_operators,_=I(7).TOKEN;function g(l,C){return C.indexOf(l)!==-1}function j(l){return l.replace(/^\s+/g,"")}function Q(l){for(var C={},D=0;D<l.length;D++)C[l[D].replace(/-/g,"_")]=l[D];return C}function J(l,C){return l&&l.type===_.RESERVED&&l.text===C}function P(l,C){return l&&l.type===_.RESERVED&&g(l.text,C)}var te=["case","return","do","if","throw","else","await","break","continue","async"],H=["before-newline","after-newline","preserve-newline"],le=Q(H),ye=[le.before_newline,le.preserve_newline],ge={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function z(l,C){if(C.multiline_frame||C.mode===ge.ForInitializer||C.mode===ge.Conditional)return;l.remove_indent(C.start_line_index)}function F(l){l=l.replace(d.allLineBreaks,`
|
|
`);for(var C=[],D=l.indexOf(`
|
|
`);D!==-1;)C.push(l.substring(0,D)),l=l.substring(D+1),D=l.indexOf(`
|
|
`);return l.length&&C.push(l),C}function K(l){return l===ge.ArrayLiteral}function xe(l){return g(l,[ge.Expression,ge.ForInitializer,ge.Conditional])}function M(l,C){for(var D=0;D<l.length;D++){var he=l[D].trim();if(he.charAt(0)!==C)return!1}return!0}function u(l,C){for(var D=0,he=l.length,_e;D<he;D++)if(_e=l[D],_e&&_e.indexOf(C)!==0)return!1;return!0}function v(l,C){C=C||{},this._source_text=l||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new h(C)}v.prototype.create_flags=function(l,C){var D=0;l&&(D=l.indentation_level,!this._output.just_added_newline()&&l.line_indent_level>D&&(D=l.line_indent_level));var he={mode:C,parent:l,last_token:l?l.last_token:new f(_.START_BLOCK,""),last_word:l?l.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:D,alignment:0,line_indent_level:l?l.line_indent_level:D,start_line_index:this._output.get_line_number(),ternary_depth:0};return he},v.prototype._reset=function(l){var C=l.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new E(this._options,C),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(ge.BlockStatement);var D=new p(l,this._options);return this._tokens=D.tokenize(),l},v.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var l,C=this._reset(this._source_text),D=this._options.eol;this._options.eol==="auto"&&(D=`
|
|
`,C&&d.lineBreak.test(C||"")&&(D=C.match(d.lineBreak)[0]));for(var he=this._tokens.next();he;)this.handle_token(he),this._last_last_text=this._flags.last_token.text,this._flags.last_token=he,he=this._tokens.next();return l=this._output.get_code(D),l},v.prototype.handle_token=function(l,C){l.type===_.START_EXPR?this.handle_start_expr(l):l.type===_.END_EXPR?this.handle_end_expr(l):l.type===_.START_BLOCK?this.handle_start_block(l):l.type===_.END_BLOCK?this.handle_end_block(l):l.type===_.WORD?this.handle_word(l):l.type===_.RESERVED?this.handle_word(l):l.type===_.SEMICOLON?this.handle_semicolon(l):l.type===_.STRING?this.handle_string(l):l.type===_.EQUALS?this.handle_equals(l):l.type===_.OPERATOR?this.handle_operator(l):l.type===_.COMMA?this.handle_comma(l):l.type===_.BLOCK_COMMENT?this.handle_block_comment(l,C):l.type===_.COMMENT?this.handle_comment(l,C):l.type===_.DOT?this.handle_dot(l):l.type===_.EOF?this.handle_eof(l):l.type===_.UNKNOWN?this.handle_unknown(l,C):this.handle_unknown(l,C)},v.prototype.handle_whitespace_and_comments=function(l,C){var D=l.newlines,he=this._options.keep_array_indentation&&K(this._flags.mode);if(l.comments_before)for(var _e=l.comments_before.next();_e;)this.handle_whitespace_and_comments(_e,C),this.handle_token(_e,C),_e=l.comments_before.next();if(he)for(var Ae=0;Ae<D;Ae+=1)this.print_newline(Ae>0,C);else if(this._options.max_preserve_newlines&&D>this._options.max_preserve_newlines&&(D=this._options.max_preserve_newlines),this._options.preserve_newlines&&D>1){this.print_newline(!1,C);for(var be=1;be<D;be+=1)this.print_newline(!0,C)}};var A=["async","break","continue","return","throw","yield"];v.prototype.allow_wrap_or_preserved_newline=function(l,C){if(C=C===void 0?!1:C,this._output.just_added_newline())return;var D=this._options.preserve_newlines&&l.newlines||C,he=g(this._flags.last_token.text,W)||g(l.text,W);if(he){var _e=g(this._flags.last_token.text,W)&&g(this._options.operator_position,ye)||g(l.text,W);D=D&&_e}if(D)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(P(this._flags.last_token,A))return;this._output.set_wrap_point()}},v.prototype.print_newline=function(l,C){if(!C&&(this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==_.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")))for(var D=this._tokens.peek();this._flags.mode===ge.Statement&&!(this._flags.if_block&&J(D,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(l)&&(this._flags.multiline_frame=!0)},v.prototype.print_token_line_indentation=function(l){this._output.just_added_newline()&&(this._options.keep_array_indentation&&l.newlines&&(l.text==="["||K(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(l.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},v.prototype.print_token=function(l){if(this._output.raw){this._output.add_raw_token(l);return}if(this._options.comma_first&&l.previous&&l.previous.type===_.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var C=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(C),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(l),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(l),this._output.non_breaking_space=!0,this._output.add_token(l.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},v.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},v.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},v.prototype.set_mode=function(l){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,l),this._flags=this.create_flags(this._previous_flags,l),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},v.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===ge.Statement&&z(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},v.prototype.start_of_object_property=function(){return this._flags.parent.mode===ge.ObjectLiteral&&this._flags.mode===ge.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"]))},v.prototype.start_of_statement=function(l){var C=!1;return C=C||P(this._flags.last_token,["var","let","const"])&&l.type===_.WORD,C=C||J(this._flags.last_token,"do"),C=C||!(this._flags.parent.mode===ge.ObjectLiteral&&this._flags.mode===ge.Statement)&&P(this._flags.last_token,A)&&!l.newlines,C=C||J(this._flags.last_token,"else")&&!(J(l,"if")&&!l.comments_before),C=C||this._flags.last_token.type===_.END_EXPR&&(this._previous_flags.mode===ge.ForInitializer||this._previous_flags.mode===ge.Conditional),C=C||this._flags.last_token.type===_.WORD&&this._flags.mode===ge.BlockStatement&&!this._flags.in_case&&!(l.text==="--"||l.text==="++")&&this._last_last_text!=="function"&&l.type!==_.WORD&&l.type!==_.RESERVED,C=C||this._flags.mode===ge.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||P(this._flags.last_token,["get","set"])),C?(this.set_mode(ge.Statement),this.indent(),this.handle_whitespace_and_comments(l,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(l,P(l,["do","for","if","while"])),!0):!1},v.prototype.handle_start_expr=function(l){this.start_of_statement(l)||this.handle_whitespace_and_comments(l);var C=ge.Expression;if(l.text==="["){if(this._flags.last_token.type===_.WORD||this._flags.last_token.text===")"){P(this._flags.last_token,T)&&(this._output.space_before_token=!0),this.print_token(l),this.set_mode(C),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}C=ge.ArrayLiteral,K(this._flags.mode)&&((this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline())),g(this._flags.last_token.type,[_.START_EXPR,_.END_EXPR,_.WORD,_.OPERATOR,_.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===_.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,C=ge.ForInitializer):g(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,C=ge.Conditional):g(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&l.whitespace_before===""?this._output.space_before_token=!1:(g(this._flags.last_token.text,T)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(l);else if(this._flags.last_token.type===_.WORD){this._output.space_before_token=!1;var D=this._tokens.peek(-3);if(this._options.space_after_named_function&&D){var he=this._tokens.peek(-4);P(D,["async","function"])||D.text==="*"&&P(he,["async","function"])?this._output.space_before_token=!0:this._flags.mode===ge.ObjectLiteral?(D.text==="{"||D.text===","||D.text==="*"&&(he.text==="{"||he.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(l);(this._flags.last_token.type===_.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(g(this._last_last_text,["function","yield"])||this._flags.mode===ge.ObjectLiteral&&g(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===_.START_BLOCK?this.print_newline():(this._flags.last_token.type===_.END_EXPR||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===_.COMMA)&&this.allow_wrap_or_preserved_newline(l,l.newlines),this.print_token(l),this.set_mode(C),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},v.prototype.handle_end_expr=function(l){for(;this._flags.mode===ge.Statement;)this.restore_mode();this.handle_whitespace_and_comments(l),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(l,l.text==="]"&&K(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===_.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(l),this.restore_mode(),z(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===ge.Conditional&&(this._previous_flags.mode=ge.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},v.prototype.handle_start_block=function(l){this.handle_whitespace_and_comments(l);var C=this._tokens.peek(),D=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===_.END_EXPR?(this.set_mode(ge.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(ge.BlockStatement):D&&(g(D.text,[":",","])&&g(C.type,[_.STRING,_.WORD,_.RESERVED])||g(C.text,["get","set","..."])&&g(D.type,[_.WORD,_.RESERVED]))?g(this._last_last_text,["class","interface"])&&!g(D.text,[":",","])?this.set_mode(ge.BlockStatement):this.set_mode(ge.ObjectLiteral):this._flags.last_token.type===_.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(ge.BlockStatement):g(this._flags.last_token.type,[_.EQUALS,_.START_EXPR,_.COMMA,_.OPERATOR])||P(this._flags.last_token,["return","throw","import","default"])?this.set_mode(ge.ObjectLiteral):this.set_mode(ge.BlockStatement),this._flags.last_token&&(P(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0));var he=!C.comments_before&&C.text==="}",_e=he&&this._flags.last_word==="function"&&this._flags.last_token.type===_.END_EXPR;if(this._options.brace_preserve_inline){var Ae=0,be=null;this._flags.inline_frame=!0;do if(Ae+=1,be=this._tokens.peek(Ae-1),be.newlines){this._flags.inline_frame=!1;break}while(be.type!==_.EOF&&!(be.type===_.END_BLOCK&&be.opened===l))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&l.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==_.OPERATOR&&(_e||this._flags.last_token.type===_.EQUALS||P(this._flags.last_token,te)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(K(this._previous_flags.mode)&&(this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.COMMA)&&((this._flags.last_token.type===_.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(l),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==_.OPERATOR&&this._flags.last_token.type!==_.START_EXPR&&(this._flags.last_token.type===_.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(l),this.indent(),!he&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},v.prototype.handle_end_block=function(l){for(this.handle_whitespace_and_comments(l);this._flags.mode===ge.Statement;)this.restore_mode();var C=this._flags.last_token.type===_.START_BLOCK;this._flags.inline_frame&&!C?this._output.space_before_token=!0:this._options.brace_style==="expand"?C||this.print_newline():C||(K(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(l)},v.prototype.handle_word=function(l){if(l.type===_.RESERVED){if(g(l.text,["set","get"])&&this._flags.mode!==ge.ObjectLiteral)l.type=_.WORD;else if(l.text==="import"&&g(this._tokens.peek().text,["(","."]))l.type=_.WORD;else if(g(l.text,["as","from"])&&!this._flags.import_block)l.type=_.WORD;else if(this._flags.mode===ge.ObjectLiteral){var C=this._tokens.peek();C.text===":"&&(l.type=_.WORD)}}if(this.start_of_statement(l)?P(this._flags.last_token,["var","let","const"])&&l.type===_.WORD&&(this._flags.declaration_statement=!0):l.newlines&&!xe(this._flags.mode)&&(this._flags.last_token.type!==_.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==_.EQUALS&&(this._options.preserve_newlines||!P(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(l),this.print_newline()):this.handle_whitespace_and_comments(l),this._flags.do_block&&!this._flags.do_while)if(J(l,"while")){this._output.space_before_token=!0,this.print_token(l),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&J(l,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===ge.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&P(l,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(l),this._flags.in_case=!0;return}if((this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(l)),J(l,"function")){(g(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(g(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===_.OPERATOR))&&(!this._output.just_added_blankline()&&!l.comments_before&&(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD?P(this._flags.last_token,["get","set","new","export"])||P(this._flags.last_token,A)?this._output.space_before_token=!0:J(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===_.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(xe(this._flags.mode)||K(this._flags.mode))||this.print_newline(),this.print_token(l),this._flags.last_word=l.text;return}var D="NONE";if(this._flags.last_token.type===_.END_BLOCK?this._previous_flags.inline_frame?D="SPACE":P(l,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&l.newlines?D="NEWLINE":(D="SPACE",this._output.space_before_token=!0):D="NEWLINE":this._flags.last_token.type===_.SEMICOLON&&this._flags.mode===ge.BlockStatement?D="NEWLINE":this._flags.last_token.type===_.SEMICOLON&&xe(this._flags.mode)?D="SPACE":this._flags.last_token.type===_.STRING?D="NEWLINE":this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD||this._flags.last_token.text==="*"&&(g(this._last_last_text,["function","yield"])||this._flags.mode===ge.ObjectLiteral&&g(this._last_last_text,["{",","]))?D="SPACE":this._flags.last_token.type===_.START_BLOCK?this._flags.inline_frame?D="SPACE":D="NEWLINE":this._flags.last_token.type===_.END_EXPR&&(this._output.space_before_token=!0,D="NEWLINE"),P(l,T)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?D="SPACE":D="NEWLINE"),P(l,["else","catch","finally"]))if((!(this._flags.last_token.type===_.END_BLOCK&&this._previous_flags.mode===ge.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&l.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var he=this._output.current_line;he.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else D==="NEWLINE"?P(this._flags.last_token,te)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&P(l,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==_.END_EXPR?(this._flags.last_token.type!==_.START_EXPR||!P(l,["var","let","const"]))&&this._flags.last_token.text!==":"&&(J(l,"if")&&J(l.previous,"else")?this._output.space_before_token=!0:this.print_newline()):P(l,T)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&K(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():D==="SPACE"&&(this._output.space_before_token=!0);l.previous&&(l.previous.type===_.WORD||l.previous.type===_.RESERVED)&&(this._output.space_before_token=!0),this.print_token(l),this._flags.last_word=l.text,l.type===_.RESERVED&&(l.text==="do"?this._flags.do_block=!0:l.text==="if"?this._flags.if_block=!0:l.text==="import"?this._flags.import_block=!0:this._flags.import_block&&J(l,"from")&&(this._flags.import_block=!1))},v.prototype.handle_semicolon=function(l){this.start_of_statement(l)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(l);for(var C=this._tokens.peek();this._flags.mode===ge.Statement&&!(this._flags.if_block&&J(C,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(l)},v.prototype.handle_string=function(l){l.text.startsWith("`")&&l.newlines===0&&l.whitespace_before===""&&(l.previous.text===")"||this._flags.last_token.type===_.WORD)||(this.start_of_statement(l)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(l),this._flags.last_token.type===_.RESERVED||this._flags.last_token.type===_.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR||this._flags.last_token.type===_.EQUALS||this._flags.last_token.type===_.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(l):l.text.startsWith("`")&&this._flags.last_token.type===_.END_EXPR&&(l.previous.text==="]"||l.previous.text===")")&&l.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(l)},v.prototype.handle_equals=function(l){this.start_of_statement(l)||this.handle_whitespace_and_comments(l),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(l),this._output.space_before_token=!0},v.prototype.handle_comma=function(l){this.handle_whitespace_and_comments(l,!0),this.print_token(l),this._output.space_before_token=!0,this._flags.declaration_statement?(xe(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(l)):this._flags.mode===ge.ObjectLiteral||this._flags.mode===ge.Statement&&this._flags.parent.mode===ge.ObjectLiteral?(this._flags.mode===ge.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(l)},v.prototype.handle_operator=function(l){var C=l.text==="*"&&(P(this._flags.last_token,["function","yield"])||g(this._flags.last_token.type,[_.START_BLOCK,_.COMMA,_.END_BLOCK,_.SEMICOLON])),D=g(l.text,["-","+"])&&(g(this._flags.last_token.type,[_.START_BLOCK,_.START_EXPR,_.EQUALS,_.OPERATOR])||g(this._flags.last_token.text,T)||this._flags.last_token.text===",");if(!this.start_of_statement(l)){var he=!C;this.handle_whitespace_and_comments(l,he)}if(l.text==="*"&&this._flags.last_token.type===_.DOT){this.print_token(l);return}if(l.text==="::"){this.print_token(l);return}if(this._flags.last_token.type===_.OPERATOR&&g(this._options.operator_position,ye)&&this.allow_wrap_or_preserved_newline(l),l.text===":"&&this._flags.in_case){this.print_token(l),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==_.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var _e=!0,Ae=!0,be=!1;if(l.text===":"?this._flags.ternary_depth===0?_e=!1:(this._flags.ternary_depth-=1,be=!0):l.text==="?"&&(this._flags.ternary_depth+=1),!D&&!C&&this._options.preserve_newlines&&g(l.text,W)){var G=l.text===":",$=G&&be,me=G&&!be;switch(this._options.operator_position){case le.before_newline:this._output.space_before_token=!me,this.print_token(l),(!G||$)&&this.allow_wrap_or_preserved_newline(l),this._output.space_before_token=!0;return;case le.after_newline:this._output.space_before_token=!0,!G||$?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(l):this._output.space_before_token=!1,this.print_token(l),this._output.space_before_token=!0;return;case le.preserve_newline:me||this.allow_wrap_or_preserved_newline(l),_e=!(this._output.just_added_newline()||me),this._output.space_before_token=_e,this.print_token(l),this._output.space_before_token=!0;return}}if(C){this.allow_wrap_or_preserved_newline(l),_e=!1;var q=this._tokens.peek();Ae=q&&g(q.type,[_.WORD,_.RESERVED])}else if(l.text==="...")this.allow_wrap_or_preserved_newline(l),_e=this._flags.last_token.type===_.START_BLOCK,Ae=!1;else if(g(l.text,["--","++","!","~"])||D){if((this._flags.last_token.type===_.COMMA||this._flags.last_token.type===_.START_EXPR)&&this.allow_wrap_or_preserved_newline(l),_e=!1,Ae=!1,l.newlines&&(l.text==="--"||l.text==="++"||l.text==="~")){var Oe=P(this._flags.last_token,te)&&l.newlines;Oe&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Oe,!0)}this._flags.last_token.text===";"&&xe(this._flags.mode)&&(_e=!0),this._flags.last_token.type===_.RESERVED?_e=!0:this._flags.last_token.type===_.END_EXPR?_e=!(this._flags.last_token.text==="]"&&(l.text==="--"||l.text==="++")):this._flags.last_token.type===_.OPERATOR&&(_e=g(l.text,["--","-","++","+"])&&g(this._flags.last_token.text,["--","-","++","+"]),g(l.text,["+","-"])&&g(this._flags.last_token.text,["--","++"])&&(Ae=!0)),(this._flags.mode===ge.BlockStatement&&!this._flags.inline_frame||this._flags.mode===ge.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||_e,this.print_token(l),this._output.space_before_token=Ae},v.prototype.handle_block_comment=function(l,C){if(this._output.raw){this._output.add_raw_token(l),l.directives&&l.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(l.directives){this.print_newline(!1,C),this.print_token(l),l.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!d.newline.test(l.text)&&!l.newlines){this._output.space_before_token=!0,this.print_token(l),this._output.space_before_token=!0;return}else this.print_block_commment(l,C)},v.prototype.print_block_commment=function(l,C){var D=F(l.text),he,_e=!1,Ae=!1,be=l.whitespace_before,G=be.length;if(this.print_newline(!1,C),this.print_token_line_indentation(l),this._output.add_token(D[0]),this.print_newline(!1,C),D.length>1){for(D=D.slice(1),_e=M(D,"*"),Ae=u(D,be),_e&&(this._flags.alignment=1),he=0;he<D.length;he++)_e?(this.print_token_line_indentation(l),this._output.add_token(j(D[he]))):Ae&&D[he]?(this.print_token_line_indentation(l),this._output.add_token(D[he].substring(G))):(this._output.current_line.set_indent(-1),this._output.add_token(D[he])),this.print_newline(!1,C);this._flags.alignment=0}},v.prototype.handle_comment=function(l,C){l.newlines?this.print_newline(!1,C):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(l),this.print_newline(!1,C)},v.prototype.handle_dot=function(l){this.start_of_statement(l)||this.handle_whitespace_and_comments(l,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),P(this._flags.last_token,te)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(l,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(l)},v.prototype.handle_unknown=function(l,C){this.print_token(l),l.text[l.text.length-1]===`
|
|
`&&this.print_newline(!1,C)},v.prototype.handle_eof=function(l){for(;this._flags.mode===ge.Statement;)this.restore_mode();this.handle_whitespace_and_comments(l)},a.exports.Beautifier=v},function(a){function N(f){this.__parent=f,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}N.prototype.clone_empty=function(){var f=new N(this.__parent);return f.set_indent(this.__indent_count,this.__alignment_count),f},N.prototype.item=function(f){return f<0?this.__items[this.__items.length+f]:this.__items[f]},N.prototype.has_match=function(f){for(var d=this.__items.length-1;d>=0;d--)if(this.__items[d].match(f))return!0;return!1},N.prototype.set_indent=function(f,d){this.is_empty()&&(this.__indent_count=f||0,this.__alignment_count=d||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},N.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},N.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},N.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var f=this.__parent.current_line;return f.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),f.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),f.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,f.__items[0]===" "&&(f.__items.splice(0,1),f.__character_count-=1),!0}return!1},N.prototype.is_empty=function(){return this.__items.length===0},N.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},N.prototype.push=function(f){this.__items.push(f);var d=f.lastIndexOf(`
|
|
`);d!==-1?this.__character_count=f.length-d:this.__character_count+=f.length},N.prototype.pop=function(){var f=null;return this.is_empty()||(f=this.__items.pop(),this.__character_count-=f.length),f},N.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},N.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},N.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},N.prototype.toString=function(){var f="";return this.is_empty()?this.__parent.indent_empty_lines&&(f=this.__parent.get_indent_string(this.__indent_count)):(f=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),f+=this.__items.join("")),f};function I(f,d){this.__cache=[""],this.__indent_size=f.indent_size,this.__indent_string=f.indent_char,f.indent_with_tabs||(this.__indent_string=new Array(f.indent_size+1).join(f.indent_char)),d=d||"",f.indent_level>0&&(d=new Array(f.indent_level+1).join(this.__indent_string)),this.__base_string=d,this.__base_string_length=d.length}I.prototype.get_indent_size=function(f,d){var h=this.__base_string_length;return d=d||0,f<0&&(h=0),h+=f*this.__indent_size,h+=d,h},I.prototype.get_indent_string=function(f,d){var h=this.__base_string;return d=d||0,f<0&&(f=0,h=""),d+=f*this.__indent_size,this.__ensure_cache(d),h+=this.__cache[d],h},I.prototype.__ensure_cache=function(f){for(;f>=this.__cache.length;)this.__add_column()},I.prototype.__add_column=function(){var f=this.__cache.length,d=0,h="";this.__indent_size&&f>=this.__indent_size&&(d=Math.floor(f/this.__indent_size),f-=d*this.__indent_size,h=new Array(d+1).join(this.__indent_string)),f&&(h+=new Array(f+1).join(" ")),this.__cache.push(h)};function E(f,d){this.__indent_cache=new I(f,d),this.raw=!1,this._end_with_newline=f.end_with_newline,this.indent_size=f.indent_size,this.wrap_line_length=f.wrap_line_length,this.indent_empty_lines=f.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new N(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}E.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},E.prototype.get_line_number=function(){return this.__lines.length},E.prototype.get_indent_string=function(f,d){return this.__indent_cache.get_indent_string(f,d)},E.prototype.get_indent_size=function(f,d){return this.__indent_cache.get_indent_size(f,d)},E.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},E.prototype.add_new_line=function(f){return this.is_empty()||!f&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},E.prototype.get_code=function(f){this.trim(!0);var d=this.current_line.pop();d&&(d[d.length-1]===`
|
|
`&&(d=d.replace(/\n+$/g,"")),this.current_line.push(d)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(`
|
|
`);return f!==`
|
|
`&&(h=h.replace(/[\n]/g,f)),h},E.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},E.prototype.set_indent=function(f,d){return f=f||0,d=d||0,this.next_line.set_indent(f,d),this.__lines.length>1?(this.current_line.set_indent(f,d),!0):(this.current_line.set_indent(),!1)},E.prototype.add_raw_token=function(f){for(var d=0;d<f.newlines;d++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(f.whitespace_before),this.current_line.push(f.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},E.prototype.add_token=function(f){this.__add_space_before_token(),this.current_line.push(f),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},E.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},E.prototype.remove_indent=function(f){for(var d=this.__lines.length;f<d;)this.__lines[f]._remove_indent(),f++;this.current_line._remove_wrap_indent()},E.prototype.trim=function(f){for(f=f===void 0?!1:f,this.current_line.trim();f&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},E.prototype.just_added_newline=function(){return this.current_line.is_empty()},E.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},E.prototype.ensure_empty_line_above=function(f,d){for(var h=this.__lines.length-2;h>=0;){var p=this.__lines[h];if(p.is_empty())break;if(p.item(0).indexOf(f)!==0&&p.item(-1)!==d){this.__lines.splice(h+1,0,new N(this)),this.previous_line=this.__lines[this.__lines.length-2];break}h--}},a.exports.Output=E},function(a){function N(I,E,f,d){this.type=I,this.text=E,this.comments_before=null,this.newlines=f||0,this.whitespace_before=d||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}a.exports.Token=N},function(a,N){var I="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",E="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",f="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",d="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",h="(?:\\\\u[0-9a-fA-F]{4}|["+I+f+"])",p="(?:\\\\u[0-9a-fA-F]{4}|["+E+f+d+"])*";N.identifier=new RegExp(h+p,"g"),N.identifierStart=new RegExp(h),N.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+E+f+d+"])+");var T=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;N.newline=/[\n\r\u2028\u2029]/,N.lineBreak=new RegExp(`\r
|
|
|`+N.newline.source),N.allLineBreaks=new RegExp(N.lineBreak.source,"g")},function(a,N,I){var E=I(6).Options,f=["before-newline","after-newline","preserve-newline"];function d(h){E.call(this,h,"js");var p=this.raw_options.brace_style||null;p==="expand-strict"?this.raw_options.brace_style="expand":p==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var T=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var W=0;W<T.length;W++)T[W]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=T[W];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",f),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}d.prototype=new E,a.exports.Options=d},function(a){function N(f,d){this.raw_options=I(f,d),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}N.prototype._get_array=function(f,d){var h=this.raw_options[f],p=d||[];return typeof h=="object"?h!==null&&typeof h.concat=="function"&&(p=h.concat()):typeof h=="string"&&(p=h.split(/[^a-zA-Z0-9_\/\-]+/)),p},N.prototype._get_boolean=function(f,d){var h=this.raw_options[f],p=h===void 0?!!d:!!h;return p},N.prototype._get_characters=function(f,d){var h=this.raw_options[f],p=d||"";return typeof h=="string"&&(p=h.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),p},N.prototype._get_number=function(f,d){var h=this.raw_options[f];d=parseInt(d,10),isNaN(d)&&(d=0);var p=parseInt(h,10);return isNaN(p)&&(p=d),p},N.prototype._get_selection=function(f,d,h){var p=this._get_selection_list(f,d,h);if(p.length!==1)throw new Error("Invalid Option Value: The option '"+f+`' can only be one of the following values:
|
|
`+d+`
|
|
You passed in: '`+this.raw_options[f]+"'");return p[0]},N.prototype._get_selection_list=function(f,d,h){if(!d||d.length===0)throw new Error("Selection list cannot be empty.");if(h=h||[d[0]],!this._is_valid_selection(h,d))throw new Error("Invalid Default Value!");var p=this._get_array(f,h);if(!this._is_valid_selection(p,d))throw new Error("Invalid Option Value: The option '"+f+`' can contain only the following values:
|
|
`+d+`
|
|
You passed in: '`+this.raw_options[f]+"'");return p},N.prototype._is_valid_selection=function(f,d){return f.length&&d.length&&!f.some(function(h){return d.indexOf(h)===-1})};function I(f,d){var h={};f=E(f);var p;for(p in f)p!==d&&(h[p]=f[p]);if(d&&f[d])for(p in f[d])h[p]=f[d][p];return h}function E(f){var d={},h;for(h in f){var p=h.replace(/-/g,"_");d[p]=f[h]}return d}a.exports.Options=N,a.exports.normalizeOpts=E,a.exports.mergeOpts=I},function(a,N,I){var E=I(8).InputScanner,f=I(9).Tokenizer,d=I(9).TOKEN,h=I(13).Directives,p=I(4),T=I(12).Pattern,W=I(14).TemplatablePattern;function _(M,u){return u.indexOf(M)!==-1}var g={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:d.START,RAW:d.RAW,EOF:d.EOF},j=new h(/\/\*/,/\*\//),Q=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,J=/[0-9]/,P=/[^\d\.]/,te=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),H=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";H=H.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),H="\\?\\.(?!\\d) "+H,H=H.replace(/ /g,"|");var le=new RegExp(H),ye="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),ge=ye.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),z=new RegExp("^(?:"+ge.join("|")+")$"),F,K=function(M,u){f.call(this,M,u),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var v=new T(this._input),A=new W(this._input).read_options(this._options);this.__patterns={template:A,identifier:A.starting_with(p.identifier).matching(p.identifierMatch),number:v.matching(Q),punct:v.matching(le),comment:v.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:v.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:v.matching(/<!--/),html_comment_end:v.matching(/-->/),include:v.starting_with(/#include/).until_after(p.lineBreak),shebang:v.starting_with(/#!/).until_after(p.lineBreak),xml:v.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:A.until(/['\\\n\r\u2028\u2029]/),double_quote:A.until(/["\\\n\r\u2028\u2029]/),template_text:A.until(/[`\\$]/),template_expression:A.until(/[`}\\]/)}};K.prototype=new f,K.prototype._is_comment=function(M){return M.type===g.COMMENT||M.type===g.BLOCK_COMMENT||M.type===g.UNKNOWN},K.prototype._is_opening=function(M){return M.type===g.START_BLOCK||M.type===g.START_EXPR},K.prototype._is_closing=function(M,u){return(M.type===g.END_BLOCK||M.type===g.END_EXPR)&&u&&(M.text==="]"&&u.text==="["||M.text===")"&&u.text==="("||M.text==="}"&&u.text==="{")},K.prototype._reset=function(){F=!1},K.prototype._get_next_token=function(M,u){var v=null;this._readWhitespace();var A=this._input.peek();return A===null?this._create_token(g.EOF,""):(v=v||this._read_non_javascript(A),v=v||this._read_string(A),v=v||this._read_word(M),v=v||this._read_singles(A),v=v||this._read_comment(A),v=v||this._read_regexp(A,M),v=v||this._read_xml(A,M),v=v||this._read_punctuation(),v=v||this._create_token(g.UNKNOWN,this._input.next()),v)},K.prototype._read_word=function(M){var u;if(u=this.__patterns.identifier.read(),u!=="")return u=u.replace(p.allLineBreaks,`
|
|
`),!(M.type===g.DOT||M.type===g.RESERVED&&(M.text==="set"||M.text==="get"))&&z.test(u)?(u==="in"||u==="of")&&(M.type===g.WORD||M.type===g.STRING)?this._create_token(g.OPERATOR,u):this._create_token(g.RESERVED,u):this._create_token(g.WORD,u);if(u=this.__patterns.number.read(),u!=="")return this._create_token(g.WORD,u)},K.prototype._read_singles=function(M){var u=null;return M==="("||M==="["?u=this._create_token(g.START_EXPR,M):M===")"||M==="]"?u=this._create_token(g.END_EXPR,M):M==="{"?u=this._create_token(g.START_BLOCK,M):M==="}"?u=this._create_token(g.END_BLOCK,M):M===";"?u=this._create_token(g.SEMICOLON,M):M==="."&&P.test(this._input.peek(1))?u=this._create_token(g.DOT,M):M===","&&(u=this._create_token(g.COMMA,M)),u&&this._input.next(),u},K.prototype._read_punctuation=function(){var M=this.__patterns.punct.read();if(M!=="")return M==="="?this._create_token(g.EQUALS,M):M==="?."?this._create_token(g.DOT,M):this._create_token(g.OPERATOR,M)},K.prototype._read_non_javascript=function(M){var u="";if(M==="#"){if(this._is_first_token()&&(u=this.__patterns.shebang.read(),u))return this._create_token(g.UNKNOWN,u.trim()+`
|
|
`);if(u=this.__patterns.include.read(),u)return this._create_token(g.UNKNOWN,u.trim()+`
|
|
`);M=this._input.next();var v="#";if(this._input.hasNext()&&this._input.testChar(J)){do M=this._input.next(),v+=M;while(this._input.hasNext()&&M!=="#"&&M!=="=");return M==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(v+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(v+="{}",this._input.next(),this._input.next())),this._create_token(g.WORD,v)}this._input.back()}else if(M==="<"&&this._is_first_token()){if(u=this.__patterns.html_comment_start.read(),u){for(;this._input.hasNext()&&!this._input.testChar(p.newline);)u+=this._input.next();return F=!0,this._create_token(g.COMMENT,u)}}else if(F&&M==="-"&&(u=this.__patterns.html_comment_end.read(),u))return F=!1,this._create_token(g.COMMENT,u);return null},K.prototype._read_comment=function(M){var u=null;if(M==="/"){var v="";if(this._input.peek(1)==="*"){v=this.__patterns.block_comment.read();var A=j.get_directives(v);A&&A.ignore==="start"&&(v+=j.readIgnored(this._input)),v=v.replace(p.allLineBreaks,`
|
|
`),u=this._create_token(g.BLOCK_COMMENT,v),u.directives=A}else this._input.peek(1)==="/"&&(v=this.__patterns.comment.read(),u=this._create_token(g.COMMENT,v))}return u},K.prototype._read_string=function(M){if(M==="`"||M==="'"||M==='"'){var u=this._input.next();return this.has_char_escapes=!1,M==="`"?u+=this._read_string_recursive("`",!0,"${"):u+=this._read_string_recursive(M),this.has_char_escapes&&this._options.unescape_strings&&(u=xe(u)),this._input.peek()===M&&(u+=this._input.next()),u=u.replace(p.allLineBreaks,`
|
|
`),this._create_token(g.STRING,u)}return null},K.prototype._allow_regexp_or_xml=function(M){return M.type===g.RESERVED&&_(M.text,["return","case","throw","else","do","typeof","yield"])||M.type===g.END_EXPR&&M.text===")"&&M.opened.previous.type===g.RESERVED&&_(M.opened.previous.text,["if","while","for"])||_(M.type,[g.COMMENT,g.START_EXPR,g.START_BLOCK,g.START,g.END_BLOCK,g.OPERATOR,g.EQUALS,g.EOF,g.SEMICOLON,g.COMMA])},K.prototype._read_regexp=function(M,u){if(M==="/"&&this._allow_regexp_or_xml(u)){for(var v=this._input.next(),A=!1,l=!1;this._input.hasNext()&&(A||l||this._input.peek()!==M)&&!this._input.testChar(p.newline);)v+=this._input.peek(),A?A=!1:(A=this._input.peek()==="\\",this._input.peek()==="["?l=!0:this._input.peek()==="]"&&(l=!1)),this._input.next();return this._input.peek()===M&&(v+=this._input.next(),v+=this._input.read(p.identifier)),this._create_token(g.STRING,v)}return null},K.prototype._read_xml=function(M,u){if(this._options.e4x&&M==="<"&&this._allow_regexp_or_xml(u)){var v="",A=this.__patterns.xml.read_match();if(A){for(var l=A[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),C=l.indexOf("{")===0,D=0;A;){var he=!!A[1],_e=A[2],Ae=!!A[A.length-1]||_e.slice(0,8)==="![CDATA[";if(!Ae&&(_e===l||C&&_e.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(he?--D:++D),v+=A[0],D<=0)break;A=this.__patterns.xml.read_match()}return A||(v+=this._input.match(/[\s\S]*/g)[0]),v=v.replace(p.allLineBreaks,`
|
|
`),this._create_token(g.STRING,v)}}return null};function xe(M){for(var u="",v=0,A=new E(M),l=null;A.hasNext();)if(l=A.match(/([\s]|[^\\]|\\\\)+/g),l&&(u+=l[0]),A.peek()==="\\"){if(A.next(),A.peek()==="x")l=A.match(/x([0-9A-Fa-f]{2})/g);else if(A.peek()==="u")l=A.match(/u([0-9A-Fa-f]{4})/g);else{u+="\\",A.hasNext()&&(u+=A.next());continue}if(!l)return M;if(v=parseInt(l[1],16),v>126&&v<=255&&l[0].indexOf("x")===0)return M;if(v>=0&&v<32){u+="\\"+l[0];continue}else v===34||v===39||v===92?u+="\\"+String.fromCharCode(v):u+=String.fromCharCode(v)}return u}K.prototype._read_string_recursive=function(M,u,v){var A,l;M==="'"?l=this.__patterns.single_quote:M==='"'?l=this.__patterns.double_quote:M==="`"?l=this.__patterns.template_text:M==="}"&&(l=this.__patterns.template_expression);for(var C=l.read(),D="";this._input.hasNext();){if(D=this._input.next(),D===M||!u&&p.newline.test(D)){this._input.back();break}else D==="\\"&&this._input.hasNext()?(A=this._input.peek(),A==="x"||A==="u"?this.has_char_escapes=!0:A==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),D+=this._input.next()):v&&(v==="${"&&D==="$"&&this._input.peek()==="{"&&(D+=this._input.next()),v===D&&(M==="`"?D+=this._read_string_recursive("}",u,"`"):D+=this._read_string_recursive("`",u,"${"),this._input.hasNext()&&(D+=this._input.next())));D+=l.read(),C+=D}return C},a.exports.Tokenizer=K,a.exports.TOKEN=g,a.exports.positionable_operators=te.slice(),a.exports.line_starters=ye.slice()},function(a){var N=RegExp.prototype.hasOwnProperty("sticky");function I(E){this.__input=E||"",this.__input_length=this.__input.length,this.__position=0}I.prototype.restart=function(){this.__position=0},I.prototype.back=function(){this.__position>0&&(this.__position-=1)},I.prototype.hasNext=function(){return this.__position<this.__input_length},I.prototype.next=function(){var E=null;return this.hasNext()&&(E=this.__input.charAt(this.__position),this.__position+=1),E},I.prototype.peek=function(E){var f=null;return E=E||0,E+=this.__position,E>=0&&E<this.__input_length&&(f=this.__input.charAt(E)),f},I.prototype.__match=function(E,f){E.lastIndex=f;var d=E.exec(this.__input);return d&&!(N&&E.sticky)&&(d.index!==f&&(d=null)),d},I.prototype.test=function(E,f){return f=f||0,f+=this.__position,f>=0&&f<this.__input_length?!!this.__match(E,f):!1},I.prototype.testChar=function(E,f){var d=this.peek(f);return E.lastIndex=0,d!==null&&E.test(d)},I.prototype.match=function(E){var f=this.__match(E,this.__position);return f?this.__position+=f[0].length:f=null,f},I.prototype.read=function(E,f,d){var h="",p;return E&&(p=this.match(E),p&&(h+=p[0])),f&&(p||!E)&&(h+=this.readUntil(f,d)),h},I.prototype.readUntil=function(E,f){var d="",h=this.__position;E.lastIndex=this.__position;var p=E.exec(this.__input);return p?(h=p.index,f&&(h+=p[0].length)):h=this.__input_length,d=this.__input.substring(this.__position,h),this.__position=h,d},I.prototype.readUntilAfter=function(E){return this.readUntil(E,!0)},I.prototype.get_regexp=function(E,f){var d=null,h="g";return f&&N&&(h="y"),typeof E=="string"&&E!==""?d=new RegExp(E,h):E&&(d=new RegExp(E.source,h)),d},I.prototype.get_literal_regexp=function(E){return RegExp(E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},I.prototype.peekUntilAfter=function(E){var f=this.__position,d=this.readUntilAfter(E);return this.__position=f,d},I.prototype.lookBack=function(E){var f=this.__position-1;return f>=E.length&&this.__input.substring(f-E.length,f).toLowerCase()===E},a.exports.InputScanner=I},function(a,N,I){var E=I(8).InputScanner,f=I(3).Token,d=I(10).TokenStream,h=I(11).WhitespacePattern,p={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},T=function(W,_){this._input=new E(W),this._options=_||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new h(this._input)};T.prototype.tokenize=function(){this._input.restart(),this.__tokens=new d,this._reset();for(var W,_=new f(p.START,""),g=null,j=[],Q=new d;_.type!==p.EOF;){for(W=this._get_next_token(_,g);this._is_comment(W);)Q.add(W),W=this._get_next_token(_,g);Q.isEmpty()||(W.comments_before=Q,Q=new d),W.parent=g,this._is_opening(W)?(j.push(g),g=W):g&&this._is_closing(W,g)&&(W.opened=g,g.closed=W,g=j.pop(),W.parent=g),W.previous=_,_.next=W,this.__tokens.add(W),_=W}return this.__tokens},T.prototype._is_first_token=function(){return this.__tokens.isEmpty()},T.prototype._reset=function(){},T.prototype._get_next_token=function(W,_){this._readWhitespace();var g=this._input.read(/.+/g);return g?this._create_token(p.RAW,g):this._create_token(p.EOF,"")},T.prototype._is_comment=function(W){return!1},T.prototype._is_opening=function(W){return!1},T.prototype._is_closing=function(W,_){return!1},T.prototype._create_token=function(W,_){var g=new f(W,_,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return g},T.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},a.exports.Tokenizer=T,a.exports.TOKEN=p},function(a){function N(I){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=I}N.prototype.restart=function(){this.__position=0},N.prototype.isEmpty=function(){return this.__tokens_length===0},N.prototype.hasNext=function(){return this.__position<this.__tokens_length},N.prototype.next=function(){var I=null;return this.hasNext()&&(I=this.__tokens[this.__position],this.__position+=1),I},N.prototype.peek=function(I){var E=null;return I=I||0,I+=this.__position,I>=0&&I<this.__tokens_length&&(E=this.__tokens[I]),E},N.prototype.add=function(I){this.__parent_token&&(I.parent=this.__parent_token),this.__tokens.push(I),this.__tokens_length+=1},a.exports.TokenStream=N},function(a,N,I){var E=I(12).Pattern;function f(d,h){E.call(this,d,h),h?this._line_regexp=this._input.get_regexp(h._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}f.prototype=new E,f.prototype.__set_whitespace_patterns=function(d,h){d+="\\t ",h+="\\n\\r",this._match_pattern=this._input.get_regexp("["+d+h+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+h+"]")},f.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var d=this._input.read(this._match_pattern);if(d===" ")this.whitespace_before_token=" ";else if(d){var h=this.__split(this._newline_regexp,d);this.newline_count=h.length-1,this.whitespace_before_token=h[this.newline_count]}return d},f.prototype.matching=function(d,h){var p=this._create();return p.__set_whitespace_patterns(d,h),p._update(),p},f.prototype._create=function(){return new f(this._input,this)},f.prototype.__split=function(d,h){d.lastIndex=0;for(var p=0,T=[],W=d.exec(h);W;)T.push(h.substring(p,W.index)),p=W.index+W[0].length,W=d.exec(h);return p<h.length?T.push(h.substring(p,h.length)):T.push(""),T},a.exports.WhitespacePattern=f},function(a){function N(I,E){this._input=I,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,E&&(this._starting_pattern=this._input.get_regexp(E._starting_pattern,!0),this._match_pattern=this._input.get_regexp(E._match_pattern,!0),this._until_pattern=this._input.get_regexp(E._until_pattern),this._until_after=E._until_after)}N.prototype.read=function(){var I=this._input.read(this._starting_pattern);return(!this._starting_pattern||I)&&(I+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),I},N.prototype.read_match=function(){return this._input.match(this._match_pattern)},N.prototype.until_after=function(I){var E=this._create();return E._until_after=!0,E._until_pattern=this._input.get_regexp(I),E._update(),E},N.prototype.until=function(I){var E=this._create();return E._until_after=!1,E._until_pattern=this._input.get_regexp(I),E._update(),E},N.prototype.starting_with=function(I){var E=this._create();return E._starting_pattern=this._input.get_regexp(I,!0),E._update(),E},N.prototype.matching=function(I){var E=this._create();return E._match_pattern=this._input.get_regexp(I,!0),E._update(),E},N.prototype._create=function(){return new N(this._input,this)},N.prototype._update=function(){},a.exports.Pattern=N},function(a){function N(I,E){I=typeof I=="string"?I:I.source,E=typeof E=="string"?E:E.source,this.__directives_block_pattern=new RegExp(I+/ beautify( \w+[:]\w+)+ /.source+E,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(I+/\sbeautify\signore:end\s/.source+E,"g")}N.prototype.get_directives=function(I){if(!I.match(this.__directives_block_pattern))return null;var E={};this.__directive_pattern.lastIndex=0;for(var f=this.__directive_pattern.exec(I);f;)E[f[1]]=f[2],f=this.__directive_pattern.exec(I);return E},N.prototype.readIgnored=function(I){return I.readUntilAfter(this.__directives_end_ignore_pattern)},a.exports.Directives=N},function(a,N,I){var E=I(12).Pattern,f={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function d(h,p){E.call(this,h,p),this.__template_pattern=null,this._disabled=Object.assign({},f),this._excluded=Object.assign({},f),p&&(this.__template_pattern=this._input.get_regexp(p.__template_pattern),this._excluded=Object.assign(this._excluded,p._excluded),this._disabled=Object.assign(this._disabled,p._disabled));var T=new E(h);this.__patterns={handlebars_comment:T.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:T.starting_with(/{{{/).until_after(/}}}/),handlebars:T.starting_with(/{{/).until_after(/}}/),php:T.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:T.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:T.starting_with(/{%/).until_after(/%}/),django_value:T.starting_with(/{{/).until_after(/}}/),django_comment:T.starting_with(/{#/).until_after(/#}/),smarty:T.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:T.starting_with(/{\*/).until_after(/\*}/),smarty_literal:T.starting_with(/{literal}/).until_after(/{\/literal}/)}}d.prototype=new E,d.prototype._create=function(){return new d(this._input,this)},d.prototype._update=function(){this.__set_templated_pattern()},d.prototype.disable=function(h){var p=this._create();return p._disabled[h]=!0,p._update(),p},d.prototype.read_options=function(h){var p=this._create();for(var T in f)p._disabled[T]=h.templating.indexOf(T)===-1;return p._update(),p},d.prototype.exclude=function(h){var p=this._create();return p._excluded[h]=!0,p._update(),p},d.prototype.read=function(){var h="";this._match_pattern?h=this._input.read(this._starting_pattern):h=this._input.read(this._starting_pattern,this.__template_pattern);for(var p=this._read_template();p;)this._match_pattern?p+=this._input.read(this._match_pattern):p+=this._input.readUntil(this.__template_pattern),h+=p,p=this._read_template();return this._until_after&&(h+=this._input.readUntilAfter(this._until_pattern)),h},d.prototype.__set_templated_pattern=function(){var h=[];this._disabled.php||h.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||h.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||h.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(h.push(this.__patterns.django._starting_pattern.source),h.push(this.__patterns.django_value._starting_pattern.source),h.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||h.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&h.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+h.join("|")+")")},d.prototype._read_template=function(){var h="",p=this._input.peek();if(p==="<"){var T=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&T==="?"&&(h=h||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&T==="%"&&(h=h||this.__patterns.erb.read())}else p==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(h=h||this.__patterns.handlebars_comment.read(),h=h||this.__patterns.handlebars_unescaped.read(),h=h||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(h=h||this.__patterns.django_value.read()),this._excluded.django||(h=h||this.__patterns.django_comment.read(),h=h||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(h=h||this.__patterns.smarty_comment.read(),h=h||this.__patterns.smarty_literal.read(),h=h||this.__patterns.smarty.read()));return h},a.exports.TemplatablePattern=d}],R={};function ue(a){var N=R[a];if(N!==void 0)return N.exports;var I=R[a]={exports:{}};return y[a](I,I.exports,ue),I.exports}var se=ue(0);Ie=se})();var ae=Ie;!(re=[],ie=function(){return{js_beautify:ae}}.apply(L,re),ie!==void 0&&(De.exports=ie))})()},"746U":function(De,L,s){"use strict";s.d(L,"f",function(){return re}),s.d(L,"l",function(){return ie}),s.d(L,"k",function(){return Ie}),s.d(L,"j",function(){return ae}),s.d(L,"g",function(){return y}),s.d(L,"m",function(){return R}),s.d(L,"h",function(){return ue}),s.d(L,"n",function(){return se}),s.d(L,"c",function(){return a}),s.d(L,"a",function(){return N}),s.d(L,"i",function(){return I}),s.d(L,"o",function(){return E}),s.d(L,"e",function(){return h}),s.d(L,"d",function(){return p}),s.d(L,"p",function(){return T}),s.d(L,"b",function(){return W});function re(_){return Array.isArray(_)}function ie(_){return typeof _=="string"}function Ie(_){return typeof _=="object"&&_!==null&&!Array.isArray(_)&&!(_ instanceof RegExp)&&!(_ instanceof Date)}function ae(_){return typeof _=="number"&&!isNaN(_)}function y(_){return _===!0||_===!1}function R(_){return typeof _=="undefined"}function ue(_){return!se(_)}function se(_){return R(_)||_===null}function a(_,g){if(!_)throw new Error(g?`Unexpected type, expected '${g}'`:"Unexpected type")}function N(_){if(se(_))throw new Error("Assertion Failed: argument is undefined or null");return _}function I(_){return typeof _=="function"}function E(_,g){const j=Math.min(_.length,g.length);for(let Q=0;Q<j;Q++)f(_[Q],g[Q])}function f(_,g){if(ie(g)){if(typeof _!==g)throw new Error(`argument does not match constraint: typeof ${g}`)}else if(I(g)){try{if(_ instanceof g)return}catch(j){}if(!se(_)&&_.constructor===g)return;if(g.length===1&&g.call(void 0,_)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function d(_){let g=[],j=Object.getPrototypeOf(_);for(;Object.prototype!==j;)g=g.concat(Object.getOwnPropertyNames(j)),j=Object.getPrototypeOf(j);return g}function h(_){const g=[];for(const j of d(_))typeof _[j]=="function"&&g.push(j);return g}function p(_,g){const j=J=>function(){const P=Array.prototype.slice.call(arguments,0);return g(J,P)};let Q={};for(const J of _)Q[J]=j(J);return Q}function T(_){return _===null?void 0:_}function W(_,g="Unreachable"){throw new Error(g)}},"7ZXX":function(De,L,s){De.exports=s.p+"static/err.6e7c5817.png"},"7ahc":function(De,L,s){"use strict";s.d(L,"a",function(){return j});var re=s("k1fw"),ie=s("0Owb"),Ie=s("+L6B"),ae=s("2/Rp"),y=s("y8nQ"),R=s("Vl3Y"),ue=s("tJVT"),se=s("OaEy"),a=s("2fM7"),N=s("q1tI"),I=s.n(N),E=s("VrN/"),f=s.n(E),d=s("p77/"),h=s.n(d),p=s("c5Ni"),T=s.n(p),W=a.a.Option,_={labelCol:{span:4},wrapperCol:{span:20}},g={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"]};L.b=function(Q){var J=Q.callback,P=Q.onCancel,te=Object(N.useState)("python"),H=Object(ue.a)(te,2),le=H[0],ye=H[1];function ge(F){ye(g[F][1])}function z(F){J(F)}return I.a.createElement(R.a,Object(ie.a)({},_,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:z}),I.a.createElement(R.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},I.a.createElement(a.a,{onChange:ge},Object.keys(g).map(function(F){return I.a.createElement(W,{key:F,value:F},g[F][0])}))),I.a.createElement(R.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},I.a.createElement(j,{mode:le})),I.a.createElement("div",{className:"flex-container flex-end"},I.a.createElement(ae.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),I.a.createElement(ae.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function j(Q){var J=Q.value,P=Q.onChange,te=Q.mode,H=Q.options,le=H===void 0?{}:H,ye=Object(N.useRef)(),ge=Object(N.useState)(),z=Object(ue.a)(ge,2),F=z[0],K=z[1];return Object(N.useEffect)(function(){if(F){function xe(M){var u=M.getValue();P&&P(u)}return F.on("change",xe),function(){F.off("change",xe)}}},[F,P]),Object(N.useEffect)(function(){F&&F.setOption("mode",te)},[F,te]),Object(N.useEffect)(function(){F&&((J!==F.getValue()||J==="")&&setTimeout(function(){F.setValue(J||" ")},300))},[F,J]),Object(N.useEffect)(function(){if(ye.current&&!F){var xe=f.a.fromTextArea(ye.current,Object(re.a)({mode:te,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},le));K(xe)}},[ye.current,F]),I.a.createElement("div",{className:"my-codemirror-container"},I.a.createElement("textarea",{ref:ye}))}},"7v3h":function(De,L,s){De.exports=s.p+"static/empty2.dd73f390.png"},"8/bI":function(De,L,s){De.exports=s.p+"static/empty.8918e228.png"},"815F":function(De,L,s){"use strict";s.d(L,"e",function(){return ue}),s.d(L,"c",function(){return a}),s.d(L,"d",function(){return N}),s.d(L,"a",function(){return E}),s.d(L,"f",function(){return f}),s.d(L,"b",function(){return d});var re=s("KQm4"),ie=s("VTBJ"),Ie=s("Ff2n"),ae=s("Zm9Q"),y=s("Kwbf"),R=s("OZM5");function ue(h,p){return h!=null?h:p}function se(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=new Map;function T(W){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(W||[]).forEach(function(g){var j=g.key,Q=g.children;Object(y.a)(j!=null,"Tree node must have a certain key: [".concat(_).concat(j,"]"));var J=String(j);Object(y.a)(!p.has(J)||j===null||j===void 0,"Same 'key' exist in the Tree: ".concat(J)),p.set(J,!0),T(Q,"".concat(_).concat(J," > "))})}T(h)}function a(h){function p(T){var W=Object(ae.a)(T);return W.map(function(_){if(!Object(R.i)(_))return Object(y.a)(!_,"Tree/TreeNode can only accept TreeNode as children."),null;var g=_.key,j=_.props,Q=j.children,J=Object(Ie.a)(j,["children"]),P=Object(ie.a)({key:g},J),te=p(Q);return te.length&&(P.children=te),P}).filter(function(_){return _})}return p(h)}function N(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],T=new Set(p===!0?[]:p),W=[];function _(g){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return g.map(function(Q,J){var P=Object(R.h)(j?j.pos:"0",J),te=ue(Q.key,P),H=Object(ie.a)(Object(ie.a)({},Q),{},{parent:j,pos:P,children:null,data:Q,isStart:[].concat(Object(re.a)(j?j.isStart:[]),[J===0]),isEnd:[].concat(Object(re.a)(j?j.isEnd:[]),[J===g.length-1])});return W.push(H),p===!0||T.has(te)?H.children=_(Q.children||[],H):H.children=[],H})}return _(h),W}function I(h,p,T){var W;T?typeof T=="string"?W=function(j){return j[T]}:typeof T=="function"&&(W=function(j){return T(j)}):W=function(j,Q){return ue(j.key,Q)};function _(g,j,Q){var J=g?g.children:h,P=g?Object(R.h)(Q.pos,j):"0";if(g){var te=W(g,P),H={node:g,index:j,pos:P,key:te,parentPos:Q.node?Q.pos:null,level:Q.level+1};p(H)}J&&J.forEach(function(le,ye){_(le,ye,{node:g,pos:P,level:Q?Q.level+1:-1})})}_(null)}function E(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=p.initWrapper,W=p.processEntity,_=p.onProcessFinished,g=arguments.length>2?arguments[2]:void 0,j={},Q={},J={posEntities:j,keyEntities:Q};return T&&(J=T(J)||J),I(h,function(P){var te=P.node,H=P.index,le=P.pos,ye=P.key,ge=P.parentPos,z=P.level,F={node:te,index:H,key:ye,pos:le,level:z},K=ue(ye,le);j[le]=F,Q[K]=F,F.parent=j[ge],F.parent&&(F.parent.children=F.parent.children||[],F.parent.children.push(F)),W&&W(F,J)},g),_&&_(J),J}function f(h,p){var T=p.expandedKeys,W=p.selectedKeys,_=p.loadedKeys,g=p.loadingKeys,j=p.checkedKeys,Q=p.halfCheckedKeys,J=p.dragOverNodeKey,P=p.dropPosition,te=p.keyEntities,H=te[h],le={eventKey:h,expanded:T.indexOf(h)!==-1,selected:W.indexOf(h)!==-1,loaded:_.indexOf(h)!==-1,loading:g.indexOf(h)!==-1,checked:j.indexOf(h)!==-1,halfChecked:Q.indexOf(h)!==-1,pos:String(H?H.pos:""),dragOver:J===h&&P===0,dragOverGapTop:J===h&&P===-1,dragOverGapBottom:J===h&&P===1};return le}function d(h){var p=h.data,T=h.expanded,W=h.selected,_=h.checked,g=h.loaded,j=h.loading,Q=h.halfChecked,J=h.dragOver,P=h.dragOverGapTop,te=h.dragOverGapBottom,H=h.pos,le=h.active,ye=Object(ie.a)(Object(ie.a)({},p),{},{expanded:T,selected:W,checked:_,loaded:g,loading:j,halfChecked:Q,dragOver:J,dragOverGapTop:P,dragOverGapBottom:te,pos:H,active:le});return"props"in ye||Object.defineProperty(ye,"props",{get:function(){return Object(y.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),h}}),ye}},"8HAY":function(De,L,s){"use strict";s.d(L,"a",function(){return y}),s.d(L,"b",function(){return R}),s.d(L,"d",function(){return ue}),s.d(L,"e",function(){return se}),s.d(L,"c",function(){return a});var re=s("MI8n"),ie=s("pmY6"),Ie=s("3/fG"),ae=function(N,I,E,f){function d(h){return h instanceof E?h:new E(function(p){p(h)})}return new(E||(E=Promise))(function(h,p){function T(g){try{_(f.next(g))}catch(j){p(j)}}function W(g){try{_(f.throw(g))}catch(j){p(j)}}function _(g){g.done?h(g.value):d(g.value).then(T,W)}_((f=f.apply(N,I||[])).next())})};class y extends ie.a{constructor(N,I="",E="",f=!0,d){super();this._onDidChange=this._register(new re.b),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=N,this._label=I,this._cssClass=E,this._enabled=f,this._actionCallback=d}get id(){return this._id}get label(){return this._label}set label(N){this._setLabel(N)}_setLabel(N){this._label!==N&&(this._label=N,this._onDidChange.fire({label:N}))}get tooltip(){return this._tooltip||""}set tooltip(N){this._setTooltip(N)}_setTooltip(N){this._tooltip!==N&&(this._tooltip=N,this._onDidChange.fire({tooltip:N}))}get class(){return this._cssClass}set class(N){this._setClass(N)}_setClass(N){this._cssClass!==N&&(this._cssClass=N,this._onDidChange.fire({class:N}))}get enabled(){return this._enabled}set enabled(N){this._setEnabled(N)}_setEnabled(N){this._enabled!==N&&(this._enabled=N,this._onDidChange.fire({enabled:N}))}get checked(){return this._checked}set checked(N){this._setChecked(N)}_setChecked(N){this._checked!==N&&(this._checked=N,this._onDidChange.fire({checked:N}))}run(N,I){return ae(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(N))})}}class R extends ie.a{constructor(){super(...arguments);this._onBeforeRun=this._register(new re.b),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new re.b),this.onDidRun=this._onDidRun.event}run(N,I){return ae(this,void 0,void 0,function*(){if(!N.enabled)return;this._onBeforeRun.fire({action:N});let E;try{yield this.runAction(N,I)}catch(f){E=f}this._onDidRun.fire({action:N,error:E})})}runAction(N,I){return ae(this,void 0,void 0,function*(){yield N.run(I)})}}class ue extends y{constructor(N){super(ue.ID,N,N?"separator text":"separator");this.checked=!1,this.enabled=!1}}ue.ID="vs.actions.separator";class se{constructor(N,I,E,f){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=N,this.label=I,this.class=f,this._actions=E}get actions(){return this._actions}dispose(){}run(){return ae(this,void 0,void 0,function*(){})}}class a extends y{constructor(){super(a.ID,Ie.a("submenu.empty","(empty)"),void 0,!1)}}a.ID="vs.actions.empty"},"8j3D":function(De,L,s){"use strict";var re=s("2qtc"),ie=s("kLXV"),Ie=s("5NDa"),ae=s("5rEg"),y=s("miYZ"),R=s("tsqr"),ue=s("k1fw"),se=s("9og8"),a=s("y8nQ"),N=s("Vl3Y"),I=s("tJVT"),E=s("WmNS"),f=s.n(E),d=s("q1tI"),h=s.n(d),p=s("Ty5D"),T=s("9kvl"),W=s("KVXO"),_=s.n(W),g=function(Q){var J=Q.shixunsDetail,P=Q.globalSetting,te=Q.loading,H=Q.dispatch,le=Q.title,ye=Q.pathList,ge=ye===void 0?[]:ye,z=Q.showInputPath,F=z===void 0?!1:z,K=Q.isMergeSelectFile,xe=K===void 0?!1:K,M=Q.onFinish,u=M===void 0?function(){}:M,v=N.a.useForm(),A=Object(I.a)(v,1),l=A[0],C=Object(p.i)(),D=Object(p.h)(),he=Object(d.useRef)(),_e=Object(d.useState)(""),Ae=Object(I.a)(_e,2),be=Ae[0],G=Ae[1],$=Object(d.useState)(""),me=Object(I.a)($,2),q=me[0],Oe=me[1],S=Object(d.useState)([]),Y=Object(I.a)(S,2),k=Y[0],pe=Y[1],Me=Object(d.useState)([]),ce=Object(I.a)(Me,2),Ce=ce[0],Fe=ce[1];Object(d.useEffect)(function(){var Xe,st;he.current=((Xe=D.pathname)===null||Xe===void 0||((st=Xe.split("/"))===null||st===void 0)?void 0:st[3])==="repository"},[]),Object(d.useEffect)(function(){if(J.actionTabs.key!=="Repository-SelectFilePath")return;var Xe=ge.join("/"),st=[];ge.map(function(Ze,yt){yt===0?st.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(Ze),path:Xe}):st.push({val:"/".concat(Ze),path:Xe})}),pe(st),G(Xe),Oe(Xe),U(Xe)},[J.actionTabs.key]);var U=function(){var Xe=Object(se.a)(f.a.mark(function st(Ze){var yt;return f.a.wrap(function(Lt){for(;;)switch(Lt.prev=Lt.next){case 0:return Lt.next=2,H({type:he.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:C.id,path:Ze}});case 2:yt=Lt.sent,yt&&Fe(yt.trees||[]);case 4:case"end":return Lt.stop()}},st)}));return function(Ze){return Xe.apply(this,arguments)}}(),we=function(st){var Ze=be;st.type==="tree"&&(k.length?k.push({val:"/".concat(st.name),path:st.name}):k.push({val:"\u6839\u76EE\u5F55",path:""},{val:"/".concat(st.name),path:st.name}),pe(k),Ze=be?"".concat(be,"/").concat(st.name):st.name,G(Ze)),U(Ze)},Ne=function(st,Ze){var yt=k.filter(function(Lt,qe){return qe<=Ze});pe(yt);var At=yt.filter(function(Lt,qe){return qe!==0}).map(function(Lt){return Lt.val}).join("").substr(1);G(At),U(At)},ke=function(){var Xe=Object(se.a)(f.a.mark(function st(){var Ze,yt,At;return f.a.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(Ze=l==null?void 0:l.getFieldsValue(),yt=be?"".concat(be).concat(Ze!=null&&Ze.name?"/".concat(Ze==null?void 0:Ze.name):""):Ze==null?void 0:Ze.name,!xe){qe.next=6;break}return u(yt),$e(),qe.abrupt("return");case 6:if(!F){qe.next=16;break}return qe.next=9,l.validateFields();case 9:return qe.next=11,H({type:"shixunsDetail/uploadGitFolder",payload:Object(ue.a)(Object(ue.a)({},{id:C.id,path:yt}),he.current?{}:{secret_repository:!0})});case 11:At=qe.sent,u(q),At.status===0&&R.b.info("\u65B0\u5EFA\u6210\u529F"),qe.next=18;break;case 16:u(yt),R.b.success("\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\u6210\u529F");case 18:$e();case 19:case"end":return qe.stop()}},st)}));return function(){return Xe.apply(this,arguments)}}(),$e=function(){H({type:"shixunsDetail/setActionTabs",payload:{}}),l.resetFields()};return h.a.createElement(ie.a,{centered:!0,title:le||"\u65B0\u5EFA\u6587\u4EF6\u5939",closable:!1,keyboard:!1,visible:J.actionTabs.key==="Repository-SelectFilePath",onOk:ke,onCancel:$e},h.a.createElement("div",{className:_.a.wrap},h.a.createElement("div",{className:_.a.content},h.a.createElement("div",{className:_.a.mainPathWrap},!!(k!=null&&k.length)&&k.map(function(Xe,st){return h.a.createElement("a",{key:st,onClick:function(){return Ne(Xe,st)}},Xe.val)})),!!(Ce!=null&&Ce.length)&&Ce.map(function(Xe,st){return Xe.type==="tree"&&h.a.createElement("a",{key:st,onClick:function(){return we(Xe)}},h.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(_.a.colorBlue)}),Xe.name)})),h.a.createElement("label",{className:"mt5"},"\u9009\u4E2D\u7684\u65B0\u5EFA\u6587\u4EF6\u5939\u76EE\u5F55\uFF1A"),h.a.createElement("div",{className:"mt5 mb5"},be),F&&h.a.createElement(N.a,{form:l,scrollToFirstError:!0,className:"mt20"},h.a.createElement(N.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},h.a.createElement(ae.a,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09"})))))};L.a=Object(T.a)(function(j){var Q=j.shixunsDetail,J=j.loading,P=j.globalSetting;return{shixunsDetail:Q,globalSetting:P,loading:J.models.index}})(g)},"A/g1":function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAAN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CWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},BU3w:function(De,L,s){"use strict";s.d(L,"a",function(){return R});var re=s("MNnm"),ie="rc-util-key";function Ie(ue){if(ue.attachTo)return ue.attachTo;var se=document.querySelector("head");return se||document.body}function ae(ue){var se,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(re.a)())return null;var N=document.createElement("style");if((se=a.csp)===null||se===void 0?void 0:se.nonce){var I;N.nonce=(I=a.csp)===null||I===void 0?void 0:I.nonce}N.innerHTML=ue;var E=Ie(a),f=E.firstChild;return a.prepend&&E.prepend?E.prepend(N):a.prepend&&f?E.insertBefore(N,f):E.appendChild(N),N}var y=new Map;function R(ue,se){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},N=Ie(a);if(!y.has(N)){var I=ae("",a),E=I.parentNode;y.set(N,E),E.removeChild(I)}var f=Array.from(y.get(N).children).find(function(W){return W.tagName==="STYLE"&&W[ie]===se});if(f){var d,h;if(((d=a.csp)===null||d===void 0?void 0:d.nonce)&&f.nonce!==((h=a.csp)===null||h===void 0?void 0:h.nonce)){var p;f.nonce=(p=a.csp)===null||p===void 0?void 0:p.nonce}return f.innerHTML!==ue&&(f.innerHTML=ue),f}var T=ae(ue,a);return T[ie]=se,T}},"C/vA":function(De,L,s){"use strict";s.d(L,"a",function(){return re});function re(ie){const Ie=this;let ae=!1,y;return function(){return ae||(ae=!0,y=ie.apply(Ie,arguments)),y}}},"Cg/j":function(De,L,s){"use strict";s.d(L,"b",function(){return re}),s.d(L,"a",function(){return ie}),s.d(L,"c",function(){return ae}),s.d(L,"d",function(){return y});var re;(function(R){R.serviceIds=new Map,R.DI_TARGET="$di$target",R.DI_DEPENDENCIES="$di$dependencies";function ue(se){return se[R.DI_DEPENDENCIES]||[]}R.getServiceDependencies=ue})(re||(re={}));const ie=ae("instantiationService");function Ie(R,ue,se,a){ue[re.DI_TARGET]===ue?ue[re.DI_DEPENDENCIES].push({id:R,index:se,optional:a}):(ue[re.DI_DEPENDENCIES]=[{id:R,index:se,optional:a}],ue[re.DI_TARGET]=ue)}function ae(R){if(re.serviceIds.has(R))return re.serviceIds.get(R);const ue=function(se,a,N){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Ie(ue,se,N,!1)};return ue.toString=()=>R,re.serviceIds.set(R,ue),ue}function y(R){return function(ue,se,a){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");Ie(R,ue,a,!0)}}},E7E6:function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJ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UAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:function(De,L){De.exports=function(){var s=document.getSelection();if(!s.rangeCount)return function(){};for(var re=document.activeElement,ie=[],Ie=0;Ie<s.rangeCount;Ie++)ie.push(s.getRangeAt(Ie));switch(re.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":re.blur();break;default:re=null;break}return s.removeAllRanges(),function(){s.type==="Caret"&&s.removeAllRanges(),s.rangeCount||ie.forEach(function(ae){s.addRange(ae)}),re&&re.focus()}}},FOrL:function(De,L,s){De.exports=s.p+"static/nodata.a6b3f948.png"},FPkq:function(De,L,s){De.exports=s.p+"static/qrCode.dd0fe9b2.png"},FWmy:function(De,L,s){"use strict";s.d(L,"a",function(){return re});function re(ie,Ie){if(!ie)throw new Error(Ie?`Assertion failed (${Ie})`:"Assertion Failed")}},FfZY:function(De,L,s){De.exports={wrap:"wrap___2UNvJ",modal:"modal___i6_bN",title:"title___ae-La",path:"path___3AJgW",colorBlue:"colorBlue___afQvH",width240:"width240___9YsKN",filePath:"filePath___2-i4S"}},GABl:function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AEIK5GnBpIFXwjkAdl7vs7dkJCETXLvEj3/5d7v9/u+337nfN8554bowBHo16+3YRh3K7IPBHcRSIDI9QJ0AWkA8h0E3xM8DWAvde5x6Pqe+D17jnV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L5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GfqC:function(De,L,s){"use strict";var re=s("q1tI"),ie=s.n(re),Ie=s("TSYQ"),ae=s.n(Ie);function y(v,A){var l="cannot "+v.method+" "+v.action+" "+A.status+"'",C=new Error(l);return C.status=A.status,C.method=v.method,C.url=v.action,C}function R(v){var A=v.responseText||v.response;if(!A)return A;try{return JSON.parse(A)}catch(l){return A}}function ue(v){var A=new XMLHttpRequest;v.onProgress&&A.upload&&(A.upload.onprogress=function(he){he.total>0&&(he.percent=he.loaded/he.total*100),v.onProgress(he)});var l=new FormData;v.data&&Object.keys(v.data).forEach(function(D){var he=v.data[D];if(Array.isArray(he)){he.forEach(function(_e){l.append(D+"[]",_e)});return}l.append(D,v.data[D])}),v.file instanceof Blob?l.append(v.filename,v.file,v.file.name):l.append(v.filename,v.file),A.onerror=function(he){v.onError(he)},A.onload=function(){return A.status<200||A.status>=300?v.onError(y(v,A),R(A)):v.onSuccess(R(A),A)},A.open(v.method,v.action,!0),v.withCredentials&&"withCredentials"in A&&(A.withCredentials=!0);var C=v.headers||{};return C["X-Requested-With"]!==null&&A.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(C).forEach(function(D){C[D]!==null&&A.setRequestHeader(D,C[D])}),A.send(l),{abort:function(){A.abort()}}}var se=+new Date,a=0;function N(){return"rc-upload-"+se+"-"+ ++a}function I(v,A){return v.indexOf(A,v.length-A.length)!==-1}var E=function(v,A){if(v&&A){var l=Array.isArray(A)?A:A.split(","),C=v.name||"",D=v.type||"",he=D.replace(/\/.*$/,"");return l.some(function(_e){var Ae=_e.trim();return Ae.charAt(0)==="."?I(C.toLowerCase(),Ae.toLowerCase()):/\/\*$/.test(Ae)?he===Ae.replace(/\/.*$/,""):D===Ae})}return!0};function f(v,A){var l=v.createReader(),C=[];function D(){l.readEntries(function(he){var _e=Array.prototype.slice.apply(he);C=C.concat(_e);var Ae=!_e.length;Ae?A(C):D()})}D()}var d=function(A,l,C){var D=function he(_e,Ae){Ae=Ae||"",_e.isFile?_e.file(function(be){C(be)&&(_e.fullPath&&!be.webkitRelativePath&&(Object.defineProperties(be,{webkitRelativePath:{writable:!0}}),be.webkitRelativePath=_e.fullPath.replace(/^\//,""),Object.defineProperties(be,{webkitRelativePath:{writable:!1}})),l([be]))}):_e.isDirectory&&f(_e,function(be){be.forEach(function(G){he(G,""+Ae+_e.name+"/")})})};A.forEach(function(he){D(he.webkitGetAsEntry())})},h=d,p=Object.assign||function(v){for(var A=1;A<arguments.length;A++){var l=arguments[A];for(var C in l)Object.prototype.hasOwnProperty.call(l,C)&&(v[C]=l[C])}return v},T=function(){function v(A,l){var C=[],D=!0,he=!1,_e=void 0;try{for(var Ae=A[Symbol.iterator](),be;!(D=(be=Ae.next()).done)&&!(C.push(be.value),l&&C.length===l);D=!0);}catch(G){he=!0,_e=G}finally{try{!D&&Ae.return&&Ae.return()}finally{if(he)throw _e}}return C}return function(A,l){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return v(A,l);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),W=function(){function v(A,l){for(var C=0;C<l.length;C++){var D=l[C];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(A,D.key,D)}}return function(A,l,C){return l&&v(A.prototype,l),C&&v(A,C),A}}();function _(v,A,l){return A in v?Object.defineProperty(v,A,{value:l,enumerable:!0,configurable:!0,writable:!0}):v[A]=l,v}function g(v,A){var l={};for(var C in v){if(A.indexOf(C)>=0)continue;if(!Object.prototype.hasOwnProperty.call(v,C))continue;l[C]=v[C]}return l}function j(v,A){if(!(v instanceof A))throw new TypeError("Cannot call a class as a function")}function Q(v,A){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:v}function J(v,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);v.prototype=Object.create(A&&A.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(v,A):v.__proto__=A)}var P=function(A){return Object.keys(A).reduce(function(l,C){return(C.substr(0,5)==="data-"||C.substr(0,5)==="aria-"||C==="role")&&(l[C]=A[C]),l},{})},te=function(v){J(A,v);function A(){var l,C,D,he;j(this,A);for(var _e=arguments.length,Ae=Array(_e),be=0;be<_e;be++)Ae[be]=arguments[be];return he=(C=(D=Q(this,(l=A.__proto__||Object.getPrototypeOf(A)).call.apply(l,[this].concat(Ae))),D),D.state={uid:N()},D.reqs={},D.onChange=function(G){var $=G.target.files;D.uploadFiles($),D.reset()},D.onClick=function(G){var $=D.fileInput;if(!$)return;var me=D.props,q=me.children,Oe=me.onClick;q&&q.type==="button"&&($.parentNode.focus(),$.parentNode.querySelector("button").blur()),$.click(),Oe&&Oe(G)},D.onKeyDown=function(G){G.key==="Enter"&&D.onClick()},D.onFileDrop=function(G){var $=D.props.multiple;if(G.preventDefault(),G.type==="dragover")return;if(D.props.directory)h(Array.prototype.slice.call(G.dataTransfer.items),D.uploadFiles,function(q){return E(q,D.props.accept)});else{var me=Array.prototype.slice.call(G.dataTransfer.files).filter(function(q){return E(q,D.props.accept)});$===!1&&(me=me.slice(0,1)),D.uploadFiles(me)}},D.uploadFiles=function(G){var $=Array.prototype.slice.call(G);$.map(function(me){return me.uid=N(),me}).forEach(function(me){D.upload(me,$)})},D.saveFileInput=function(G){D.fileInput=G},C),Q(D,he)}return W(A,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(C,D){var he=this,_e=this.props;if(!_e.beforeUpload)return setTimeout(function(){return he.post(C)},0);var Ae=_e.beforeUpload(C,D);Ae&&Ae.then?Ae.then(function(be){var G=Object.prototype.toString.call(be);return G==="[object File]"||G==="[object Blob]"?he.post(be):he.post(C)}).catch(function(be){console.log(be)}):Ae!==!1&&setTimeout(function(){return he.post(C)},0);return}},{key:"post",value:function(C){var D=this;if(!this._isMounted)return;var he=this.props,_e=he.onStart,Ae=he.onProgress,be=he.transformFile,G=be===void 0?function($){return $}:be;new Promise(function($){var me=he.action;return typeof me=="function"&&(me=me(C)),$(me)}).then(function($){var me=C.uid,q=he.customRequest||ue,Oe=Promise.resolve(G(C)).then(function(S){var Y=he.data;return typeof Y=="function"&&(Y=Y(S)),Promise.all([S,Y])}).catch(function(S){console.error(S)});Oe.then(function(S){var Y=T(S,2),k=Y[0],pe=Y[1],Me={action:$,filename:he.name,data:pe,file:k,headers:he.headers,withCredentials:he.withCredentials,method:he.method||"post",onProgress:Ae?function(ce){Ae(ce,C)}:null,onSuccess:function(Ce,Fe){delete D.reqs[me],he.onSuccess(Ce,C,Fe)},onError:function(Ce,Fe){delete D.reqs[me],he.onError(Ce,Fe,C)}};_e(C),D.reqs[me]=q(Me)})})}},{key:"reset",value:function(){this.setState({uid:N()})}},{key:"abort",value:function(C){var D=this.reqs;if(C){var he=C;C&&C.uid&&(he=C.uid),D[he]&&D[he].abort&&D[he].abort(),delete D[he]}else Object.keys(D).forEach(function(_e){D[_e]&&D[_e].abort&&D[_e].abort(),delete D[_e]})}},{key:"render",value:function(){var C,D=this.props,he=D.component,_e=D.prefixCls,Ae=D.className,be=D.disabled,G=D.id,$=D.style,me=D.multiple,q=D.accept,Oe=D.children,S=D.directory,Y=D.openFileDialogOnClick,k=D.onMouseEnter,pe=D.onMouseLeave,Me=g(D,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),ce=ae()((C={},_(C,_e,!0),_(C,_e+"-disabled",be),_(C,Ae,Ae),C)),Ce=be?{}:{onClick:Y?this.onClick:function(){},onKeyDown:Y?this.onKeyDown:function(){},onMouseEnter:k,onMouseLeave:pe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ie.a.createElement(he,p({},Ce,{className:ce,role:"button",style:$}),ie.a.createElement("input",p({},P(Me),{id:G,type:"file",ref:this.saveFileInput,onClick:function(U){return U.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:q,directory:S?"directory":null,webkitdirectory:S?"webkitdirectory":null,multiple:me,onChange:this.onChange})),Oe)}}]),A}(re.Component),H=te,le=Object.assign||function(v){for(var A=1;A<arguments.length;A++){var l=arguments[A];for(var C in l)Object.prototype.hasOwnProperty.call(l,C)&&(v[C]=l[C])}return v},ye=function(){function v(A,l){for(var C=0;C<l.length;C++){var D=l[C];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(A,D.key,D)}}return function(A,l,C){return l&&v(A.prototype,l),C&&v(A,C),A}}();function ge(v,A){if(!(v instanceof A))throw new TypeError("Cannot call a class as a function")}function z(v,A){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:v}function F(v,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);v.prototype=Object.create(A&&A.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(v,A):v.__proto__=A)}function K(){}var xe=function(v){F(A,v);function A(){var l,C,D,he;ge(this,A);for(var _e=arguments.length,Ae=Array(_e),be=0;be<_e;be++)Ae[be]=arguments[be];return he=(C=(D=z(this,(l=A.__proto__||Object.getPrototypeOf(A)).call.apply(l,[this].concat(Ae))),D),D.saveUploader=function(G){D.uploader=G},C),z(D,he)}return ye(A,[{key:"abort",value:function(C){this.uploader.abort(C)}},{key:"render",value:function(){return ie.a.createElement(H,le({},this.props,{ref:this.saveUploader}))}}]),A}(re.Component);xe.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:K,onError:K,onSuccess:K,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var M=xe,u=L.a=M},HpTS:function(De,L,s){De.exports=s.p+"static/small_program.f74069ec.png"},IZBM:function(De,L,s){"use strict";s.d(L,"n",function(){return N}),s.d(L,"o",function(){return I}),s.d(L,"k",function(){return E}),s.d(L,"H",function(){return f}),s.d(L,"j",function(){return d}),s.d(L,"L",function(){return h}),s.d(L,"G",function(){return p}),s.d(L,"B",function(){return T}),s.d(L,"D",function(){return W}),s.d(L,"g",function(){return _}),s.d(L,"s",function(){return g}),s.d(L,"i",function(){return j}),s.d(L,"l",function(){return Q}),s.d(L,"z",function(){return te}),s.d(L,"m",function(){return H}),s.d(L,"x",function(){return le}),s.d(L,"y",function(){return ye}),s.d(L,"e",function(){return ge}),s.d(L,"E",function(){return z}),s.d(L,"F",function(){return F}),s.d(L,"C",function(){return K}),s.d(L,"K",function(){return xe}),s.d(L,"p",function(){return M}),s.d(L,"q",function(){return u}),s.d(L,"r",function(){return v}),s.d(L,"u",function(){return A}),s.d(L,"I",function(){return l}),s.d(L,"c",function(){return C}),s.d(L,"d",function(){return D}),s.d(L,"a",function(){return he}),s.d(L,"t",function(){return _e}),s.d(L,"f",function(){return Ae}),s.d(L,"A",function(){return be}),s.d(L,"v",function(){return G}),s.d(L,"J",function(){return $}),s.d(L,"b",function(){return me}),s.d(L,"h",function(){return Oe}),s.d(L,"w",function(){return Y});var re=s("9og8"),ie=s("k1fw"),Ie=s("WmNS"),ae=s.n(Ie),y=s("ErOA"),R=s("1vsH"),ue,se,a=(ue=Object(R.I)())!==null&&ue!==void 0&&ue.homework_common_id?{homework_common_id:(se=Object(R.I)())===null||se===void 0?void 0:se.homework_common_id}:{};function N(ce){return Object(y.c)("tasks/".concat(ce,".json"),a)}function I(ce){return Object(y.c)("myshixuns/".concat(ce,"/challenges.json"))}function E(ce,Ce){return Object(y.c)("myshixuns/".concat(ce,"/subject_challenges.json"),Ce)}function f(ce,Ce,Fe){return Object(y.c)("tasks/".concat(ce,"/star.json?shixun_id=").concat(Ce,"&star=").concat(Fe))}function d(ce,Ce){return Object(y.c)("tasks/".concat(ce,"/rep_content.json"),Object(ie.a)(Object(ie.a)({},Ce),a))}function h(ce,Ce){return Object(y.f)("myshixuns/".concat(ce,"/update_file.json"),Ce)}function p(ce,Ce){return Object(y.c)("tasks/".concat(ce,"/reset_original_code.json"),Object(ie.a)(Object(ie.a)({},Ce),a))}function T(ce,Ce){return Object(y.f)("myshixuns/".concat(ce,"/reset_repository.json"),Ce)}function W(ce,Ce){return Object(y.c)("tasks/".concat(ce,"/reset_passed_code.json"),Object(ie.a)(Object(ie.a)({},Ce),a))}function _(ce,Ce){return Object(y.f)("tasks/".concat(ce,"/game_build.json"),Object(ie.a)(Object(ie.a)({},Ce),a))}function g(ce,Ce){return Object(y.c)("tasks/".concat(ce,"/game_status.json"),Object(ie.a)(Object(ie.a)({},Ce),a))}function j(ce,Ce){return Object(y.f)("tasks/".concat(ce,"/choose_build.json"),Object(ie.a)(Object(ie.a)({},Ce),a))}function Q(ce){return Object(y.c)("tasks/".concat(ce,"/picture_display.json"),a)}function J(ce,Ce){return Object(y.c)("tasks/".concat(ce,"/cost_time.json"),Object(ie.a)(Object(ie.a)({},Ce),a))}function P(ce,Ce){return Object(y.c)("courses/".concat(ce,"/inform_detail.json"),Ce)}function te(ce){return Object(y.f)("tasks/".concat(ce,"/plus_or_cancel_praise.json"))}function H(ce){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object(y.f)("myshixuns/".concat(ce,"/repository.json"),Ce)}function le(ce,Ce){return Object(y.c)("myshixuns/".concat(ce,"/start.json"),Ce||{})}function ye(ce,Ce){return Object(y.c)("myshixuns/".concat(ce,"/start.json"),Ce||{})}function ge(ce){return Object(y.c)("myshixuns/".concat(ce,"/reset_pod.json"))}function z(ce){return Object(y.c)("myshixuns/".concat(ce.myshixunId,"/reset_pod.json"),{game_id:ce.game_id})}function F(ce){return Object(y.c)("myshixuns/".concat(ce.myshixunId,"/reset_pod.json"),{game_id:ce.game_id})}function K(ce){var Ce=ce.myshixunId;return delete ce.myshixunId,Object(y.c)("myshixuns/".concat(Ce,"/reset_pod.json"),Object(ie.a)({game_id:ce.game_id},ce))}function xe(ce){return Object(y.c)("tasks/".concat(ce,"/check_test_sets.json"))}function M(ce){return Object(y.c)("tasks/".concat(ce,"/get_answer_info.json"))}function u(ce){return Object(y.c)("tasks/".concat(ce,"/get_choose_answer.json"))}function v(ce){return Object(y.c)("tasks/".concat(ce,"/unlock_choose_answer.json"))}function A(ce,Ce){return Object(y.c)("tasks/".concat(ce,"/unlock_answer.json?answer_id=").concat(Ce))}function l(ce,Ce,Fe){return Object(y.f)("tasks/".concat(ce,"/set_games_status.json"),{result:Ce,data:Fe})}function C(ce,Ce){return Object(y.c)("myshixuns/".concat(ce,"/active_pod.json?game_id=").concat(Ce))}function D(ce,Ce){return Object(y.a)("/api/myshixuns/".concat(ce,"/active_pod.json"),{method:"get",params:{template_id:window.sessionStorage.imageId||"",game_id:Ce}})}function he(ce,Ce){return Object(y.c)("myshixuns/".concat(ce,"/active_pod.json?game_id=").concat(Ce))}function _e(ce,Ce){return Object(y.c)("tasks/".concat(ce,"/rank_list.json"),Ce)}function Ae(ce,Ce){return Object(y.f)("tasks/".concat(ce,"/close_windows_vnc.json"),{tpi_id:Ce})}function be(ce){return Object(y.c)("tasks/".concat(ce,"/pull_files.json"))}function G(ce,Ce){return Object(y.f)("tasks/".concat(ce,"/log_output"),Ce)}function $(ce){return Object(y.c)("tasks/".concat(ce,"/stop_log_output.json"))}function me(ce){return q.apply(this,arguments)}function q(){return q=Object(re.a)(ae.a.mark(function ce(Ce){return ae.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.abrupt("return",Object(y.a)("/api/myshixuns/".concat(Ce.id,"/add_file.json"),{method:"post",body:Ce}));case 1:case"end":return U.stop()}},ce)})),q.apply(this,arguments)}function Oe(ce){return S.apply(this,arguments)}function S(){return S=Object(re.a)(ae.a.mark(function ce(Ce){return ae.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.abrupt("return",Object(y.a)("/api/myshixuns/".concat(Ce.id,"/delete_git_file.json"),{method:"Delete",body:Ce}));case 1:case"end":return U.stop()}},ce)})),S.apply(this,arguments)}function Y(ce){return k.apply(this,arguments)}function k(){return k=Object(re.a)(ae.a.mark(function ce(Ce){return ae.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.abrupt("return",Object(y.a)("/api/myshixuns/".concat(Ce.id,"/mv_file.json"),{method:"post",body:Ce}));case 1:case"end":return U.stop()}},ce)})),k.apply(this,arguments)}function pe(ce){return Me.apply(this,arguments)}function Me(){return Me=Object(re.a)(ae.a.mark(function ce(Ce){return ae.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.abrupt("return",Object(y.a)("/api/tasks/".concat(Ce.id,"/rep_content.json"),{method:"get",params:Ce}));case 1:case"end":return U.stop()}},ce)})),Me.apply(this,arguments)}},JWDV:function(De,L,s){De.exports=s.p+"static/charpter-white.5fa14f93.svg"},JYp7:function(De,L,s){"use strict";s.d(L,"a",function(){return re});var re;(function(ie){function Ie(g){return g&&typeof g=="object"&&typeof g[Symbol.iterator]=="function"}ie.is=Ie;const ae=Object.freeze([]);function y(){return ae}ie.empty=y;function*R(g){yield g}ie.single=R;function ue(g){return g||ae}ie.from=ue;function se(g){return!g||g[Symbol.iterator]().next().done===!0}ie.isEmpty=se;function a(g){return g[Symbol.iterator]().next().value}ie.first=a;function N(g,j){for(const Q of g)if(j(Q))return!0;return!1}ie.some=N;function I(g,j){for(const Q of g)if(j(Q))return Q;return}ie.find=I;function*E(g,j){for(const Q of g)j(Q)&&(yield Q)}ie.filter=E;function*f(g,j){let Q=0;for(const J of g)yield j(J,Q++)}ie.map=f;function*d(...g){for(const j of g)for(const Q of j)yield Q}ie.concat=d;function*h(g){for(const j of g)for(const Q of j)yield Q}ie.concatNested=h;function p(g,j,Q){let J=Q;for(const P of g)J=j(J,P);return J}ie.reduce=p;function*T(g,j,Q=g.length){for(j<0&&(j+=g.length),Q<0?Q+=g.length:Q>g.length&&(Q=g.length);j<Q;j++)yield g[j]}ie.slice=T;function W(g,j=Number.POSITIVE_INFINITY){const Q=[];if(j===0)return[Q,g];const J=g[Symbol.iterator]();for(let P=0;P<j;P++){const te=J.next();if(te.done)return[Q,ie.empty()];Q.push(te.value)}return[Q,{[Symbol.iterator](){return J}}]}ie.consume=W;function _(g,j,Q=(J,P)=>J===P){const J=g[Symbol.iterator](),P=j[Symbol.iterator]();for(;;){const te=J.next(),H=P.next();if(te.done!==H.done)return!1;if(te.done)return!0;if(!Q(te.value,H.value))return!1}}ie.equals=_})(re||(re={}))},JeFH:function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7THQtLlCiBUn4z6j9ySa26SUMg3A+ZDyaljBMTC87mXrAUwSQtT+fxBOSqmbpjnaMIyrYJnToRvtQ/sOAJgihFh1ssvRSEFSysEAroJlXQZdp8VhXUEAS07UYGavBPSIQz10vacQ4vjJLJiUMgPAhZByJoQYyr0erZFYmFOFZK+GK7szGOB3Qoi/nsxycG9KQVLKKyDltbDMbBge5NYD87+twvxjNdhbZiIoJZZMysRpPqsShreXECL/ZBRMSjkAwM2wzIugG2k2gOW59fjgaDU2FNbjRI2Fm/r48eigdtz+TUKIF05GOSL3JKSUDwN4SALYXBRQwqzIrUNBvQ1DAIYm4BHAJxMz0TPOLoJu9BFClJxsglVVVWXGx8d/IYTIOl4rsSCnGvNzarCvIghLAl5NoN6WuKVPA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+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jq4h:function(De,L,s){De.exports=s.p+"static/qrcode.2267e4d5.png"},KVXO:function(De,L,s){De.exports={wrap:"wrap___1VfLE",content:"content___20B4M",mainPathWrap:"mainPathWrap___3qDeg",colorBlue:"colorBlue___2ZjUq"}},LdHM:function(De,L,s){"use strict";s.d(L,"b",function(){return g}),s.d(L,"a",function(){return Q});var re=s("1OyB"),ie=s("vuIU"),Ie=s("Ji7U"),ae=s("LK+K"),y=s("q1tI"),R=s("rePB"),ue=s("Ff2n"),se=s("ODXe"),a=s("4IlW"),N=s("bX4T"),I=s("YrtM"),E=s("TSYQ"),f=s.n(E),d=s("+nKL"),h=s("8OUc"),p=function(C,D){var he=C.prefixCls,_e=C.id,Ae=C.flattenOptions,be=C.childrenAsData,G=C.values,$=C.searchValue,me=C.multiple,q=C.defaultActiveFirstOption,Oe=C.height,S=C.itemHeight,Y=C.notFoundContent,k=C.open,pe=C.menuItemSelectedIcon,Me=C.virtual,ce=C.onSelect,Ce=C.onToggleOpen,Fe=C.onActiveValue,U=C.onScroll,we=C.onMouseEnter,Ne="".concat(he,"-item"),ke=Object(I.a)(function(){return Ae},[k,Ae],function(ut,Wt){return Wt[0]&&ut[1]!==Wt[1]}),$e=y.useRef(null),Xe=function(Wt){Wt.preventDefault()},st=function(Wt){$e.current&&$e.current.scrollTo({index:Wt})},Ze=function(Wt){for(var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,pn=ke.length,en=0;en<pn;en+=1){var Rn=(Wt+en*It+pn)%pn,oi=ke[Rn],On=oi.group,si=oi.data;if(!On&&!si.disabled)return Rn}return-1},yt=y.useState(function(){return Ze(0)}),At=Object(se.a)(yt,2),Lt=At[0],qe=At[1],Xn=function(Wt){qe(Wt);var It=ke[Wt];if(!It){Fe(null,-1);return}Fe(It.data.value,Wt)};y.useEffect(function(){Xn(q!==!1?Ze(0):-1)},[ke.length,$]),y.useEffect(function(){var ut=setTimeout(function(){if(!me&&k&&G.size===1){var Wt=Array.from(G)[0],It=ke.findIndex(function(pn){var en=pn.data;return en.value===Wt});Xn(It),st(It)}});return function(){return clearTimeout(ut)}},[k]);var xn=function(Wt){Wt!==void 0&&ce(Wt,{selected:!G.has(Wt)}),me||Ce(!1)};if(y.useImperativeHandle(D,function(){return{onKeyDown:function(Wt){var It=Wt.which;switch(It){case a.a.UP:case a.a.DOWN:{var pn=0;if(It===a.a.UP?pn=-1:It===a.a.DOWN&&(pn=1),pn!==0){var en=Ze(Lt+pn,pn);st(en),Xn(en)}break}case a.a.ENTER:{var Rn=ke[Lt];Rn&&!Rn.data.disabled?xn(Rn.data.value):xn(void 0),k&&Wt.preventDefault();break}case a.a.ESC:Ce(!1)}},onKeyUp:function(){},scrollTo:function(Wt){st(Wt)}}}),ke.length===0)return y.createElement("div",{role:"listbox",id:"".concat(_e,"_list"),className:"".concat(Ne,"-empty"),onMouseDown:Xe},Y);function Bt(ut){var Wt=ke[ut];if(!Wt)return null;var It=Wt.data||{},pn=It.value,en=It.label,Rn=It.children,oi=Object(N.a)(It,!0),On=be?Rn:en;return Wt?y.createElement("div",Object.assign({"aria-label":typeof On=="string"?On:null},oi,{key:ut,role:"option",id:"".concat(_e,"_list_").concat(ut),"aria-selected":G.has(pn)}),pn):null}return y.createElement(y.Fragment,null,y.createElement("div",{role:"listbox",id:"".concat(_e,"_list"),style:{height:0,width:0,overflow:"hidden"}},Bt(Lt-1),Bt(Lt),Bt(Lt+1)),y.createElement(d.a,{itemKey:"key",ref:$e,data:ke,height:Oe,itemHeight:S,fullHeight:!1,onMouseDown:Xe,onScroll:U,virtual:Me,onMouseEnter:we},function(ut,Wt){var It,pn=ut.group,en=ut.groupOption,Rn=ut.data,oi=Rn.label,On=Rn.key;if(pn)return y.createElement("div",{className:f()(Ne,"".concat(Ne,"-group"))},oi!==void 0?oi:On);var si=Rn.disabled,Ti=Rn.value,li=Rn.title,ir=Rn.children,rr=Rn.style,Yi=Rn.className,Pi=Object(ue.a)(Rn,["disabled","value","title","children","style","className"]),Si=G.has(Ti),hi="".concat(Ne,"-option"),mr=f()(Ne,hi,Yi,(It={},Object(R.a)(It,"".concat(hi,"-grouped"),en),Object(R.a)(It,"".concat(hi,"-active"),Lt===Wt&&!si),Object(R.a)(It,"".concat(hi,"-disabled"),si),Object(R.a)(It,"".concat(hi,"-selected"),Si),It)),ht=be?ir:oi,We=!pe||typeof pe=="function"||Si;return y.createElement("div",Object.assign({},Pi,{"aria-selected":Si,className:mr,title:li,onMouseMove:function(){if(Lt===Wt||si)return;Xn(Wt)},onClick:function(){si||xn(Ti)},style:rr}),y.createElement("div",{className:"".concat(hi,"-content")},ht||Ti),y.isValidElement(pe)||Si,We&&y.createElement(h.a,{className:"".concat(Ne,"-option-state"),customizeIcon:pe,customizeIconProps:{isSelected:Si}},Si?"\u2713":null))}))},T=y.forwardRef(p);T.displayName="OptionList";var W=T,_=function(){return null};_.isSelectOption=!0;var g=_,j=function(){return null};j.isSelectOptGroup=!0;var Q=j,J=s("VTBJ"),P=s("Zm9Q");function te(l){var C=l.key,D=l.props,he=D.children,_e=D.value,Ae=Object(ue.a)(D,["children","value"]);return Object(J.a)({key:C,value:_e!==void 0?_e:C,children:he},Ae)}function H(l){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(l).map(function(D,he){if(!y.isValidElement(D)||!D.type)return null;var _e=D.type.isSelectOptGroup,Ae=D.key,be=D.props,G=be.children,$=Object(ue.a)(be,["children"]);return C||!_e?te(D):Object(J.a)(Object(J.a)({key:"__RC_SELECT_GRP__".concat(Ae===null?he:Ae,"__"),label:Ae},$),{},{options:H(G)})}).filter(function(D){return D})}var le=s("2Qr1"),ye=s("qNPg"),ge=s("U8pU"),z=s("Kwbf"),F=s("WKfj");function K(l){var C=l.mode,D=l.options,he=l.children,_e=l.backfill,Ae=l.allowClear,be=l.placeholder,G=l.getInputElement,$=l.showSearch,me=l.onSearch,q=l.defaultOpen,Oe=l.autoFocus,S=l.labelInValue,Y=l.value,k=l.inputValue,pe=l.optionLabelProp,Me=C==="multiple"||C==="tags",ce=$!==void 0?$:Me||C==="combobox",Ce=D||H(he);if(Object(z.a)(C!=="tags"||Ce.every(function(Ne){return!Ne.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),C==="tags"||C==="combobox"){var Fe=Ce.some(function(Ne){return Ne.options?Ne.options.some(function(ke){return typeof("value"in ke?ke.value:ke.key)=="number"}):typeof("value"in Ne?Ne.value:Ne.key)=="number"});Object(z.a)(!Fe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(z.a)(C!=="combobox"||!pe,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(z.a)(C==="combobox"||!_e,"`backfill` only works with `combobox` mode."),Object(z.a)(C==="combobox"||!G,"`getInputElement` only work with `combobox` mode."),Object(z.b)(C!=="combobox"||!G||!Ae||!be,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),me&&!ce&&C!=="combobox"&&C!=="tags"&&Object(z.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(z.b)(!q||Oe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Y!=null){var U=Object(F.d)(Y);Object(z.a)(!S||U.every(function(Ne){return Object(ge.a)(Ne)==="object"&&("key"in Ne||"value"in Ne)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(z.a)(!Me||Array.isArray(Y),"`value` should be array when `mode` is `multiple` or `tags`")}if(he){var we=null;Object(P.a)(he).some(function(Ne){if(!y.isValidElement(Ne)||!Ne.type)return!1;var ke=Ne.type;if(ke.isSelectOption)return!1;if(ke.isSelectOptGroup){var $e=Object(P.a)(Ne.props.children).every(function(Xe){return!y.isValidElement(Xe)||!Ne.type||Xe.type.isSelectOption?!0:(we=Xe.type,!1)});return!$e}return we=ke,!0}),we&&Object(z.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(we.displayName||we.name||we,"`.")),Object(z.a)(k===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var xe=K,M=Object(ye.a)({prefixCls:"rc-select",components:{optionList:W},convertChildrenToData:H,flattenOptions:le.d,getLabeledValue:le.e,filterOptions:le.b,isValueDisabled:le.g,findValueOption:le.c,warningProps:xe,fillOptionsWithMissingValue:le.a}),u=function(l){Object(Ie.a)(D,l);var C=Object(ae.a)(D);function D(){var he;return Object(re.a)(this,D),he=C.apply(this,arguments),he.selectRef=y.createRef(),he.focus=function(){he.selectRef.current.focus()},he.blur=function(){he.selectRef.current.blur()},he}return Object(ie.a)(D,[{key:"render",value:function(){return y.createElement(M,Object.assign({ref:this.selectRef},this.props))}}]),D}(y.Component);u.Option=g,u.OptGroup=Q;var v=u,A=L.c=v},MI8n:function(De,L,s){"use strict";s.d(L,"c",function(){return y}),s.d(L,"b",function(){return a}),s.d(L,"e",function(){return N}),s.d(L,"a",function(){return I}),s.d(L,"d",function(){return E}),s.d(L,"f",function(){return f});var re=s("/cxE"),ie=s("pmY6"),Ie=s("24hK"),ae=s("5Y4S"),y;(function(d){d.None=()=>ie.a.None;function h(K){return(xe,M=null,u)=>{let v=!1,A;return A=K(l=>v?void 0:(A?A.dispose():v=!0,xe.call(M,l)),null,u),v&&A.dispose(),A}}d.once=h;function p(K,xe){return Q((M,u=null,v)=>K(A=>M.call(u,xe(A)),null,v))}d.map=p;function T(K,xe){return Q((M,u=null,v)=>K(A=>{xe(A),M.call(u,A)},null,v))}d.forEach=T;function W(K,xe){return Q((M,u=null,v)=>K(A=>xe(A)&&M.call(u,A),null,v))}d.filter=W;function _(K){return K}d.signal=_;function g(...K){return(xe,M=null,u)=>Object(ie.e)(...K.map(v=>v(A=>xe.call(M,A),null,u)))}d.any=g;function j(K,xe,M){let u=M;return p(K,v=>(u=xe(u,v),u))}d.reduce=j;function Q(K){let xe;const M=new a({onFirstListenerAdd(){xe=K(M.fire,M)},onLastListenerRemove(){xe.dispose()}});return M.event}function J(K,xe,M=100,u=!1,v){let A,l,C,D=0;const he=new a({leakWarningThreshold:v,onFirstListenerAdd(){A=K(_e=>{D++,l=xe(l,_e),u&&!C&&(he.fire(l),l=void 0),clearTimeout(C),C=setTimeout(()=>{const Ae=l;l=void 0,C=void 0,(!u||D>1)&&he.fire(Ae),D=0},M)})},onLastListenerRemove(){A.dispose()}});return he.event}d.debounce=J;function P(K,xe=(M,u)=>M===u){let M=!0,u;return W(K,v=>{const A=M||!xe(v,u);return M=!1,u=v,A})}d.latch=P;function te(K,xe){return[d.filter(K,xe),d.filter(K,M=>!xe(M))]}d.split=te;function H(K,xe=!1,M=[]){let u=M.slice(),v=K(C=>{u?u.push(C):l.fire(C)});const A=()=>{u&&u.forEach(C=>l.fire(C)),u=null},l=new a({onFirstListenerAdd(){v||(v=K(C=>l.fire(C)))},onFirstListenerDidAdd(){u&&(xe?setTimeout(A):A())},onLastListenerRemove(){v&&v.dispose(),v=null}});return l.event}d.buffer=H;class le{constructor(K){this.event=K}map(K){return new le(p(this.event,K))}forEach(K){return new le(T(this.event,K))}filter(K){return new le(W(this.event,K))}reduce(K,xe){return new le(j(this.event,K,xe))}latch(){return new le(P(this.event))}debounce(K,xe=100,M=!1,u){return new le(J(this.event,K,xe,M,u))}on(K,xe,M){return this.event(K,xe,M)}once(K,xe,M){return h(this.event)(K,xe,M)}}function ye(K){return new le(K)}d.chain=ye;function ge(K,xe,M=u=>u){const u=(...C)=>l.fire(M(...C)),v=()=>K.on(xe,u),A=()=>K.removeListener(xe,u),l=new a({onFirstListenerAdd:v,onLastListenerRemove:A});return l.event}d.fromNodeEventEmitter=ge;function z(K,xe,M=u=>u){const u=(...C)=>l.fire(M(...C)),v=()=>K.addEventListener(xe,u),A=()=>K.removeEventListener(xe,u),l=new a({onFirstListenerAdd:v,onLastListenerRemove:A});return l.event}d.fromDOMEventEmitter=z;function F(K){return new Promise(xe=>h(K)(xe))}d.toPromise=F})(y||(y={}));class R{constructor(d){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${d}_${R._idPool++}`}start(d){this._stopWatch=new ae.a(!0),this._listenerCount=d}stop(){if(this._stopWatch){const d=this._stopWatch.elapsed();this._elapsedOverall+=d,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${d.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}R._idPool=0;let ue=-1;class se{constructor(d,h=Math.random().toString(18).slice(2,5)){this.customThreshold=d,this.name=h,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(d){let h=ue;if(typeof this.customThreshold=="number"&&(h=this.customThreshold),h<=0||d<h)return;this._stacks||(this._stacks=new Map);const p=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),T=this._stacks.get(p)||0;if(this._stacks.set(p,T+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=h*.5;let W,_=0;for(const[g,j]of this._stacks)(!W||_<j)&&(W=g,_=j);console.warn(`[${this.name}] potential listener LEAK detected, having ${d} listeners already. MOST frequent listener (${_}):`),console.warn(W)}return()=>{const W=this._stacks.get(p)||0;this._stacks.set(p,W-1)}}}class a{constructor(d){var h;this._disposed=!1,this._options=d,this._leakageMon=ue>0?new se(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=((h=this._options)===null||h===void 0?void 0:h._profName)?new R(this._options._profName):void 0}get event(){return this._event||(this._event=(d,h,p)=>{var T;this._listeners||(this._listeners=new Ie.a);const W=this._listeners.isEmpty();W&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const _=this._listeners.push(h?[d,h]:d);W&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,d,h);const g=(T=this._leakageMon)===null||T===void 0?void 0:T.check(this._listeners.size),j=Object(ie.i)(()=>{if(g&&g(),!this._disposed&&(_(),this._options&&this._options.onLastListenerRemove)){const Q=this._listeners&&!this._listeners.isEmpty();Q||this._options.onLastListenerRemove(this)}});return p instanceof ie.b?p.add(j):Array.isArray(p)&&p.push(j),j}),this._event}fire(d){var h,p;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Ie.a);for(let T of this._listeners)this._deliveryQueue.push([T,d]);for((h=this._perfMon)===null||h===void 0||h.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[T,W]=this._deliveryQueue.shift();try{typeof T=="function"?T.call(void 0,W):T[0].call(T[1],W)}catch(_){Object(re.f)(_)}}(p=this._perfMon)===null||p===void 0||p.stop()}}dispose(){var d,h,p,T,W;this._disposed||(this._disposed=!0,(d=this._listeners)===null||d===void 0||d.clear(),(h=this._deliveryQueue)===null||h===void 0||h.clear(),(T=(p=this._options)===null||p===void 0?void 0:p.onLastListenerRemove)===null||T===void 0||T.call(p),(W=this._leakageMon)===null||W===void 0||W.dispose())}}class N extends a{constructor(d){super(d);this._isPaused=0,this._eventQueue=new Ie.a,this._mergeFn=d==null?void 0:d.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const d=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(d))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(d){this._listeners&&(this._isPaused!==0?this._eventQueue.push(d):super.fire(d))}}class I extends N{constructor(d){var h;super(d);this._delay=(h=d.delay)!==null&&h!==void 0?h:100}fire(d){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(d)}}class E{constructor(){this.buffers=[]}wrapEvent(d){return(h,p,T)=>d(W=>{const _=this.buffers[this.buffers.length-1];_?_.push(()=>h.call(p,W)):h.call(p,W)},void 0,T)}bufferEvents(d){const h=[];this.buffers.push(h);const p=d();return this.buffers.pop(),h.forEach(T=>T()),p}}class f{constructor(){this.listening=!1,this.inputEvent=y.None,this.inputEventListener=ie.a.None,this.emitter=new a({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(d){this.inputEvent=d,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=d(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},MNsG:function(De,L,s){"use strict";(function(re,ie){s.d(L,"b",function(){return p}),s.d(L,"i",function(){return g}),s.d(L,"f",function(){return j}),s.d(L,"d",function(){return Q}),s.d(L,"g",function(){return J}),s.d(L,"h",function(){return P}),s.d(L,"c",function(){return te}),s.d(L,"k",function(){return H}),s.d(L,"j",function(){return le}),s.d(L,"a",function(){return ye}),s.d(L,"e",function(){return F});var Ie;const ae="en";let y=!1,R=!1,ue=!1,se=!1,a=!1,N=!1,I=!1,E,f=ae,d,h;const p=typeof self=="object"?self:typeof re=="object"?re:{};let T;typeof p.vscode!="undefined"&&typeof p.vscode.process!="undefined"?T=p.vscode.process:typeof ie!="undefined"&&(T=ie);const W=typeof((Ie=T==null?void 0:T.versions)===null||Ie===void 0?void 0:Ie.electron)=="string"&&T.type==="renderer";if(typeof navigator=="object"&&!W)h=navigator.userAgent,y=h.indexOf("Windows")>=0,R=h.indexOf("Macintosh")>=0,I=(h.indexOf("Macintosh")>=0||h.indexOf("iPad")>=0||h.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ue=h.indexOf("Linux")>=0,N=!0,E=navigator.language,f=E;else if(typeof T=="object"){y=T.platform==="win32",R=T.platform==="darwin",ue=T.platform==="linux",se=ue&&!!T.env.SNAP&&!!T.env.SNAP_REVISION,E=ae,f=ae;const K=T.env.VSCODE_NLS_CONFIG;if(K)try{const xe=JSON.parse(K),M=xe.availableLanguages["*"];E=xe.locale,f=M||ae,d=xe._translationsConfigFile}catch(xe){}a=!0}else console.error("Unable to resolve platform.");let _=0;R?_=1:y?_=3:ue&&(_=2);const g=y,j=R,Q=ue,J=a,P=N,te=I,H=h,le=function(){if(p.setImmediate)return p.setImmediate.bind(p);if(typeof p.postMessage=="function"&&!p.importScripts){let M=[];p.addEventListener("message",v=>{if(v.data&&v.data.vscodeSetImmediateId)for(let A=0,l=M.length;A<l;A++){const C=M[A];if(C.id===v.data.vscodeSetImmediateId){M.splice(A,1),C.callback();return}}});let u=0;return v=>{const A=++u;M.push({id:A,callback:v}),p.postMessage({vscodeSetImmediateId:A},"*")}}if(typeof(T==null?void 0:T.nextTick)=="function")return T.nextTick.bind(T);const xe=Promise.resolve();return M=>xe.then(M)}(),ye=R||I?2:y?1:3;let ge=!0,z=!1;function F(){if(!z){z=!0;const K=new Uint8Array(2);K[0]=1,K[1]=2;const xe=new Uint16Array(K.buffer);ge=xe[0]===(2<<8)+1}return ge}}).call(this,s("IyRk"),s("Q2Ig"))},N0LK:function(De,L,s){"use strict";s.d(L,"C",function(){return re}),s.d(L,"v",function(){return Ie}),s.d(L,"s",function(){return ae}),s.d(L,"t",function(){return y}),s.d(L,"U",function(){return R}),s.d(L,"J",function(){return ue}),s.d(L,"O",function(){return se}),s.d(L,"p",function(){return a}),s.d(L,"T",function(){return N}),s.d(L,"q",function(){return I}),s.d(L,"N",function(){return E}),s.d(L,"M",function(){return f}),s.d(L,"Q",function(){return d}),s.d(L,"u",function(){return h}),s.d(L,"x",function(){return p}),s.d(L,"I",function(){return T}),s.d(L,"f",function(){return W}),s.d(L,"h",function(){return _}),s.d(L,"g",function(){return g}),s.d(L,"i",function(){return j}),s.d(L,"G",function(){return Q}),s.d(L,"H",function(){return J}),s.d(L,"r",function(){return P}),s.d(L,"R",function(){return te}),s.d(L,"d",function(){return H}),s.d(L,"e",function(){return le}),s.d(L,"E",function(){return ye}),s.d(L,"F",function(){return ge}),s.d(L,"j",function(){return z}),s.d(L,"z",function(){return F}),s.d(L,"K",function(){return xe}),s.d(L,"L",function(){return M}),s.d(L,"m",function(){return v}),s.d(L,"k",function(){return l}),s.d(L,"A",function(){return D}),s.d(L,"a",function(){return he}),s.d(L,"n",function(){return _e}),s.d(L,"l",function(){return Ae}),s.d(L,"D",function(){return be}),s.d(L,"B",function(){return G}),s.d(L,"b",function(){return $}),s.d(L,"S",function(){return me}),s.d(L,"o",function(){return q}),s.d(L,"P",function(){return Oe}),s.d(L,"w",function(){return S}),s.d(L,"c",function(){return Y}),s.d(L,"y",function(){return Me});function re(U){return!U||typeof U!="string"?!0:U.trim().length===0}const ie=/{(\d+)}/g;function Ie(U,...we){return we.length===0?U:U.replace(ie,function(Ne,ke){const $e=parseInt(ke,10);return isNaN($e)||$e<0||$e>=we.length?Ne:we[$e]})}function ae(U){return U.replace(/[<>&]/g,function(we){switch(we){case"<":return"<";case">":return">";case"&":return"&";default:return we}})}function y(U){return U.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function R(U,we=" "){const Ne=ue(U,we);return se(Ne,we)}function ue(U,we){if(!U||!we)return U;const Ne=we.length;if(Ne===0||U.length===0)return U;let ke=0;for(;U.indexOf(we,ke)===ke;)ke=ke+Ne;return U.substring(ke)}function se(U,we){if(!U||!we)return U;const Ne=we.length,ke=U.length;if(Ne===0||ke===0)return U;let $e=ke,Xe=-1;for(;!(Xe=U.lastIndexOf(we,$e-1),Xe===-1||Xe+Ne!==$e);){if(Xe===0)return"";$e=Xe}return U.substring(0,$e)}function a(U){return U.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function N(U){return U.replace(/\*/g,"")}function I(U,we,Ne={}){if(!U)throw new Error("Cannot create regex from empty string");we||(U=y(U)),Ne.wholeWord&&(/\B/.test(U.charAt(0))||(U="\\b"+U),/\B/.test(U.charAt(U.length-1))||(U=U+"\\b"));let ke="";return Ne.global&&(ke+="g"),Ne.matchCase||(ke+="i"),Ne.multiline&&(ke+="m"),Ne.unicode&&(ke+="u"),new RegExp(U,ke)}function E(U){if(U.source==="^"||U.source==="^$"||U.source==="$"||U.source==="^\\s*$")return!1;const we=U.exec("");return!!(we&&U.lastIndex===0)}function f(U){return(U.global?"g":"")+(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")}function d(U){return U.split(/\r\n|\r|\n/)}function h(U){for(let we=0,Ne=U.length;we<Ne;we++){const ke=U.charCodeAt(we);if(ke!==32&&ke!==9)return we}return-1}function p(U,we=0,Ne=U.length){for(let ke=we;ke<Ne;ke++){const $e=U.charCodeAt(ke);if($e!==32&&$e!==9)return U.substring(we,ke)}return U.substring(we,Ne)}function T(U,we=U.length-1){for(let Ne=we;Ne>=0;Ne--){const ke=U.charCodeAt(Ne);if(ke!==32&&ke!==9)return Ne}return-1}function W(U,we){return U<we?-1:U>we?1:0}function _(U,we,Ne=0,ke=U.length,$e=0,Xe=we.length){for(;Ne<ke&&$e<Xe;Ne++,$e++){let yt=U.charCodeAt(Ne),At=we.charCodeAt($e);if(yt<At)return-1;if(yt>At)return 1}const st=ke-Ne,Ze=Xe-$e;return st<Ze?-1:st>Ze?1:0}function g(U,we){return j(U,we,0,U.length,0,we.length)}function j(U,we,Ne=0,ke=U.length,$e=0,Xe=we.length){for(;Ne<ke&&$e<Xe;Ne++,$e++){let yt=U.charCodeAt(Ne),At=we.charCodeAt($e);if(yt===At)continue;if(yt>=128||At>=128)return _(U.toLowerCase(),we.toLowerCase(),Ne,ke,$e,Xe);Q(yt)&&(yt-=32),Q(At)&&(At-=32);const Lt=yt-At;if(Lt===0)continue;return Lt}const st=ke-Ne,Ze=Xe-$e;return st<Ze?-1:st>Ze?1:0}function Q(U){return U>=97&&U<=122}function J(U){return U>=65&&U<=90}function P(U,we){return U.length===we.length&&j(U,we)===0}function te(U,we){const Ne=we.length;return we.length>U.length?!1:j(U,we,0,Ne)===0}function H(U,we){let Ne,ke=Math.min(U.length,we.length);for(Ne=0;Ne<ke;Ne++)if(U.charCodeAt(Ne)!==we.charCodeAt(Ne))return Ne;return ke}function le(U,we){let Ne,ke=Math.min(U.length,we.length);const $e=U.length-1,Xe=we.length-1;for(Ne=0;Ne<ke;Ne++)if(U.charCodeAt($e-Ne)!==we.charCodeAt(Xe-Ne))return Ne;return ke}function ye(U){return 55296<=U&&U<=56319}function ge(U){return 56320<=U&&U<=57343}function z(U,we){return(U-55296<<10)+(we-56320)+65536}function F(U,we,Ne){const ke=U.charCodeAt(Ne);if(ye(ke)&&Ne+1<we){const $e=U.charCodeAt(Ne+1);if(ge($e))return z(ke,$e)}return ke}function K(U,we){const Ne=U.charCodeAt(we-1);if(ge(Ne)&&we>1){const ke=U.charCodeAt(we-2);if(ye(ke))return z(ke,Ne)}return Ne}function xe(U,we){const Ne=k.getInstance(),ke=we,$e=U.length,Xe=F(U,$e,we);we+=Xe>=65536?2:1;let st=Ne.getGraphemeBreakType(Xe);for(;we<$e;){const Ze=F(U,$e,we),yt=Ne.getGraphemeBreakType(Ze);if(Y(st,yt))break;we+=Ze>=65536?2:1,st=yt}return we-ke}function M(U,we){const Ne=k.getInstance(),ke=we,$e=K(U,we);we-=$e>=65536?2:1;let Xe=Ne.getGraphemeBreakType($e);for(;we>0;){const st=K(U,we),Ze=Ne.getGraphemeBreakType(st);if(Y(Ze,Xe))break;we-=st>=65536?2:1,Xe=Ze}return ke-we}const u=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function v(U){return u.test(U)}const A=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function l(U){return A.test(U)}const C=/^[\t\n\r\x20-\x7E]*$/;function D(U){return C.test(U)}const he=/[\u2028\u2029]/;function _e(U){return he.test(U)}function Ae(U){for(let we=0,Ne=U.length;we<Ne;we++)if(be(U.charCodeAt(we)))return!0;return!1}function be(U){return U=+U,U>=11904&&U<=55215||U>=63744&&U<=64255||U>=65281&&U<=65374}function G(U){return U>=127462&&U<=127487||U===8986||U===8987||U===9200||U===9203||U>=9728&&U<=10175||U===11088||U===11093||U>=127744&&U<=128591||U>=128640&&U<=128764||U>=128992&&U<=129003||U>=129280&&U<=129535||U>=129648&&U<=129750}const $=String.fromCharCode(65279);function me(U){return!!(U&&U.length>0&&U.charCodeAt(0)===65279)}function q(U,we=!1){return U?(we&&(U=U.replace(/\\./g,"")),U.toLowerCase()!==U):!1}function Oe(U){const we=90-65+1;return U=U%(2*we),U<we?String.fromCharCode(97+U):String.fromCharCode(65+U-we)}function S(U){const we=k.getInstance();return we.getGraphemeBreakType(U)}function Y(U,we){return U===0?we!==5&&we!==7:U===2&&we===3?!1:U===4||U===2||U===3||(we===4||we===2||we===3)?!0:U===8&&(we===8||we===9||we===11||we===12)||((U===11||U===9)&&(we===9||we===10)||((U===12||U===10)&&we===10||(we===5||we===13||(we===7||(U===1||U===13&&we===14)))))?!1:!(U===6&&we===6)}class k{constructor(){this._data=pe()}static getInstance(){return k._INSTANCE||(k._INSTANCE=new k),k._INSTANCE}getGraphemeBreakType(U){if(U<32)return U===10?3:U===13?2:4;if(U<127)return 0;const we=this._data,Ne=we.length/3;let ke=1;for(;ke<=Ne;)if(U<we[3*ke])ke=2*ke;else if(U>we[3*ke+1])ke=2*ke+1;else return we[3*ke+2];return 0}}k._INSTANCE=null;function pe(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function Me(U,we){if(U===0)return 0;const Ne=ce(U,we);if(Ne!==void 0)return Ne;const ke=K(we,U);return U-=Ce(ke),U}function ce(U,we){let Ne=K(we,U);for(U-=Ce(Ne);Fe(Ne)||Ne===65039||Ne===8419;){if(U===0)return;Ne=K(we,U),U-=Ce(Ne)}if(!G(Ne))return;if(U>=0){const ke=K(we,U);ke===8205&&(U-=Ce(ke))}return U}function Ce(U){return U>=65536?2:1}function Fe(U){return 127995<=U&&U<=127999}},NLgs:function(De,L,s){"use strict";s.d(L,"e",function(){return g}),s.d(L,"f",function(){return j}),s.d(L,"d",function(){return J}),s.d(L,"c",function(){return P}),s.d(L,"a",function(){return te}),s.d(L,"b",function(){return H});var re=s("miYZ"),ie=s("tsqr"),Ie=s("9og8"),ae=s("2qtc"),y=s("kLXV"),R=s("WmNS"),ue=s.n(R),se=s("q1tI"),a=s.n(se),N=s("9kvl"),I=s("xKgJ"),E=s("1vsH"),f=s("RCxd"),d=s("yTi+"),h=s.n(d),p=s("1ZF9"),T=s.n(p),W=s("NoGO"),_=s.n(W),g=function(ye){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return!!(j(ye)&&Q(ge))},j=function(ye){return Object(I.p)()?!0:(ye({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},Q=function(){var ye,ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,z=Object(N.c)()._store.getState(),F=z.user;return(ye=F.userInfo)!==null&&ye!==void 0&&ye.profile_completed?!0:(y.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:ge?"\u6309\u7167\u6709\u5173\u653F\u7B56\u89C4\u5B9A\uFF0C\u7279\u6B8A\u5B9E\u9A8C\u9700\u8981\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u624D\u80FD\u4F7F\u7528\uFF0C\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u7801":"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){N.d.push("/account/profile/edit")}}),!1)},J=function(){var ye,ge=Object(N.c)()._store.getState(),z=ge.user;return(ye=z.userInfo)!==null&&ye!==void 0&&ye.professional_certification?!0:(y.a.confirm({title:"\u63D0\u793A",centered:!0,content:a.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(E.S)("/account/certification")}}),!1)},P=function(){return Object(I.a)()?!0:(y.a.warning({centered:!0,width:530,title:"\u63D0\u793A",content:a.a.createElement("div",{className:"tc",style:{marginLeft:-38}},a.a.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),a.a.createElement("img",{src:_.a,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1)},te=function(ye,ge){return ye?!0:(y.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:a.a.createElement("div",null,a.a.createElement("p",null,ge||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),a.a.createElement("div",{style:{marginLeft:"110px"}},a.a.createElement("img",{src:T.a,width:200}),a.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(E.S)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},H=function(ye){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",z=Object(N.c)()._store.getState(),F=z.shixunsDetail.detail;return(F==null?void 0:F.public)===2||(F==null?void 0:F.public)===1||(F==null?void 0:F.shixun_status)===3?(y.a.info({centered:!0,icon:a.a.createElement(f.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:a.a.createElement("div",{className:"tc",style:{marginLeft:-38}},a.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},a.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(F==null?void 0:F.public)===2?"\u5DF2\u516C\u5F00":(F==null?void 0:F.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",ge,"\u3002"),a.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),a.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:h.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(F==null?void 0:F.shixun_status)===2?(y.a.confirm({centered:!0,icon:a.a.createElement(f.a,null),title:"\u63D0\u793A",content:a.a.createElement("div",null,a.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",ge,"\u3002"),a.a.createElement("br",null),a.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){y.a.confirm({width:440,centered:!0,icon:a.a.createElement(f.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var xe=Object(Ie.a)(ue.a.mark(function u(){var v;return ue.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,ye({type:"shixunsDetail/cancelRelease",payload:{id:F==null?void 0:F.identifier}});case 2:v=l.sent,v.status!==401&&(ie.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),ye({type:"shixunsDetail/getShixunsDetail",payload:{id:F==null?void 0:F.identifier}}),ye({type:"practiceSetting/getCommonData",payload:{id:F==null?void 0:F.identifier}}));case 4:case"end":return l.stop()}},u)}));function M(){return xe.apply(this,arguments)}return M}()})}}),!0):!1}},Nmxd:function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8B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zmTK8v5Z/N4/biEYI1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NoGO:function(De,L,s){De.exports=s.p+"static/newqrcode.d852fdfc.png"},NvD2:function(De,L,s){"use strict";s.d(L,"a",function(){return R});var re=s("Kwbf");function ie(ue,se){var a=new Set;return ue.forEach(function(N){se.has(N)||a.add(N)}),a}function Ie(ue){var se=ue||{},a=se.disabled,N=se.disableCheckbox,I=se.checkable;return!!(a||N)||I===!1}function ae(ue,se,a,N){for(var I=new Set(ue),E=new Set,f=0;f<=a;f+=1){var d=se.get(f)||new Set;d.forEach(function(W){var _=W.key,g=W.node,j=W.children,Q=j===void 0?[]:j;I.has(_)&&!N(g)&&Q.filter(function(J){return!N(J.node)}).forEach(function(J){I.add(J.key)})})}for(var h=new Set,p=a;p>=0;p-=1){var T=se.get(p)||new Set;T.forEach(function(W){var _=W.parent,g=W.node;if(N(g)||!W.parent||h.has(W.parent.key))return;if(N(W.parent.node)){h.add(_.key);return}var j=!0,Q=!1;(_.children||[]).filter(function(J){return!N(J.node)}).forEach(function(J){var P=J.key,te=I.has(P);j&&!te&&(j=!1),!Q&&(te||E.has(P))&&(Q=!0)}),j&&I.add(_.key),Q&&E.add(_.key),h.add(_.key)})}return{checkedKeys:Array.from(I),halfCheckedKeys:Array.from(ie(E,I))}}function y(ue,se,a,N,I){for(var E=new Set(ue),f=new Set(se),d=0;d<=N;d+=1){var h=a.get(d)||new Set;h.forEach(function(_){var g=_.key,j=_.node,Q=_.children,J=Q===void 0?[]:Q;!E.has(g)&&!f.has(g)&&!I(j)&&J.filter(function(P){return!I(P.node)}).forEach(function(P){E.delete(P.key)})})}f=new Set;for(var p=new Set,T=N;T>=0;T-=1){var W=a.get(T)||new Set;W.forEach(function(_){var g=_.parent,j=_.node;if(I(j)||!_.parent||p.has(_.parent.key))return;if(I(_.parent.node)){p.add(g.key);return}var Q=!0,J=!1;(g.children||[]).filter(function(P){return!I(P.node)}).forEach(function(P){var te=P.key,H=E.has(te);Q&&!H&&(Q=!1),!J&&(H||f.has(te))&&(J=!0)}),Q||E.delete(g.key),J&&f.add(g.key),p.add(g.key)})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(ie(f,E))}}function R(ue,se,a,N){var I=[],E;N?E=N:E=Ie;var f=new Set(ue.filter(function(T){var W=!!a[T];return W||I.push(T),W})),d=new Map,h=0;Object.keys(a).forEach(function(T){var W=a[T],_=W.level,g=d.get(_);g||(g=new Set,d.set(_,g)),g.add(W),h=Math.max(h,_)}),Object(re.a)(!I.length,"Tree missing follow keys: ".concat(I.slice(0,100).map(function(T){return"'".concat(T,"'")}).join(", ")));var p;return se===!0?p=ae(f,d,h,E):p=y(f,se.halfCheckedKeys,d,h,E),p}},OZM5:function(De,L,s){"use strict";s.d(L,"b",function(){return N}),s.d(L,"a",function(){return I}),s.d(L,"k",function(){return E}),s.d(L,"h",function(){return f}),s.d(L,"i",function(){return d}),s.d(L,"g",function(){return h}),s.d(L,"c",function(){return p}),s.d(L,"d",function(){return T}),s.d(L,"j",function(){return g}),s.d(L,"e",function(){return j}),s.d(L,"f",function(){return Q});var re=s("KQm4"),ie=s("U8pU"),Ie=s("Ff2n"),ae=s("q1tI"),y=s.n(ae),R=s("Kwbf"),ue=s("WaYH"),se=.25,a=2;function N(J,P){var te=J.slice(),H=te.indexOf(P);return H>=0&&te.splice(H,1),te}function I(J,P){var te=J.slice();return te.indexOf(P)===-1&&te.push(P),te}function E(J){return J.split("-")}function f(J,P){return"".concat(J,"-").concat(P)}function d(J){return J&&J.type&&J.type.isTreeNode}function h(J,P){var te=[J],H=P[J];function le(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ye.forEach(function(ge){var z=ge.key,F=ge.children;te.push(z),le(F)})}return le(H.children),te}function p(J,P){var te=J.clientY,H=P.selectHandle.getBoundingClientRect(),le=H.top,ye=H.bottom,ge=H.height,z=Math.max(ge*se,a);return te<=le+z?-1:te>=ye-z?1:0}function T(J,P){if(!J)return;var te=P.multiple;return te?J.slice():J.length?[J[0]]:J}var W=function(P){return P};function _(J,P){if(!J)return[];var te=P||{},H=te.processProps,le=H===void 0?W:H,ye=Array.isArray(J)?J:[J];return ye.map(function(ge){var z=ge.children,F=Object(Ie.a)(ge,["children"]),K=_(z,P);return y.a.createElement(ue.a,Object.assign({},le(F)),K)})}function g(J){if(!J)return null;var P;if(Array.isArray(J))P={checkedKeys:J,halfCheckedKeys:void 0};else if(Object(ie.a)(J)==="object")P={checkedKeys:J.checked||void 0,halfCheckedKeys:J.halfChecked||void 0};else return Object(R.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function j(J,P){var te=new Set;function H(le){if(te.has(le))return;var ye=P[le];if(!ye)return;te.add(le);var ge=ye.parent,z=ye.node;if(z.disabled)return;ge&&H(ge.key)}return(J||[]).forEach(function(le){H(le)}),Object(re.a)(te)}function Q(J){var P={};return Object.keys(J).forEach(function(te){(te.startsWith("data-")||te.startsWith("aria-"))&&(P[te]=J[te])}),P}},Ohmc:function(De,L,s){De.exports=s.p+"static/certificate.fc32dc1b.jpg"},P5Jw:function(De,L,s){"use strict";var re=s("rHrb"),ie=re.CopyToClipboard;ie.CopyToClipboard=ie,De.exports=ie},RMFE:function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4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NtntQ2N9rmBpAbbXOjbW4AuQFk0zZPAnKjbT7ViSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxkw/XNp8MyJOAbNrmRts8CcimbT5Z22yA3GibpwDZtM0NIJ+sbTZAbgB5U9s8qW02QDZt861OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},T8No:function(De,L,s){"use strict";s.d(L,"a",function(){return ue}),s.d(L,"e",function(){return se}),s.d(L,"c",function(){return ye}),s.d(L,"b",function(){return ge}),s.d(L,"d",function(){return z}),s.d(L,"f",function(){return xe});var re=s("MNsG"),ie=s("N0LK"),Ie=s("Cg/j");let ae=re.k||"";const y=new Map;y.set("false",!1),y.set("true",!0),y.set("isMac",re.f),y.set("isLinux",re.d),y.set("isWindows",re.i),y.set("isWeb",re.h),y.set("isMacNative",re.f&&!re.h),y.set("isEdge",ae.indexOf("Edg/")>=0),y.set("isFirefox",ae.indexOf("Firefox")>=0),y.set("isChrome",ae.indexOf("Chrome")>=0),y.set("isSafari",ae.indexOf("Safari")>=0);const R=Object.prototype.hasOwnProperty;class ue{static has(u){return E.create(u)}static equals(u,v){return f.create(u,v)}static regex(u,v){return J.create(u,v)}static not(u){return T.create(u)}static and(...u){return H.create(u,null)}static or(...u){return le.create(u,null,!0)}static deserialize(u,v=!1){return u?this._deserializeOrExpression(u,v):void 0}static _deserializeOrExpression(u,v){let A=u.split("||");return le.create(A.map(l=>this._deserializeAndExpression(l,v)),null,!0)}static _deserializeAndExpression(u,v){let A=u.split("&&");return H.create(A.map(l=>this._deserializeOne(l,v)),null)}static _deserializeOne(u,v){if(u=u.trim(),u.indexOf("!=")>=0){let A=u.split("!=");return p.create(A[0].trim(),this._deserializeValue(A[1],v))}if(u.indexOf("==")>=0){let A=u.split("==");return f.create(A[0].trim(),this._deserializeValue(A[1],v))}if(u.indexOf("=~")>=0){let A=u.split("=~");return J.create(A[0].trim(),this._deserializeRegexValue(A[1],v))}if(u.indexOf(" in ")>=0){let A=u.split(" in ");return d.create(A[0].trim(),A[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(u)){const A=u.split(">=");return g.create(A[0].trim(),A[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(u)){const A=u.split(">");return _.create(A[0].trim(),A[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(u)){const A=u.split("<=");return Q.create(A[0].trim(),A[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(u)){const A=u.split("<");return j.create(A[0].trim(),A[1].trim())}return/^\!\s*/.test(u)?T.create(u.substr(1).trim()):E.create(u)}static _deserializeValue(u,v){if(u=u.trim(),u==="true")return!0;if(u==="false")return!1;let A=/^'([^']*)'$/.exec(u);return A?A[1].trim():u}static _deserializeRegexValue(u,v){if(Object(ie.C)(u)){if(v)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let A=u.indexOf("/"),l=u.lastIndexOf("/");if(A===l||A<0){if(v)throw new Error(`bad regexp-value '${u}', missing /-enclosure`);return console.warn(`bad regexp-value '${u}', missing /-enclosure`),null}let C=u.slice(A+1,l),D=u[l+1]==="i"?"i":"";try{return new RegExp(C,D)}catch(he){if(v)throw new Error(`bad regexp-value '${u}', parse error: ${he}`);return console.warn(`bad regexp-value '${u}', parse error: ${he}`),null}}}function se(u,v){const A=u?u.substituteConstants():void 0,l=v?v.substituteConstants():void 0;return!A&&!l?!0:!A||!l?!1:A.equals(l)}function a(u,v){return u.cmp(v)}class N{constructor(){this.type=0}cmp(u){return this.type-u.type}equals(u){return u.type===this.type}substituteConstants(){return this}evaluate(u){return!1}serialize(){return"false"}keys(){return[]}negate(){return I.INSTANCE}}N.INSTANCE=new N;class I{constructor(){this.type=1}cmp(u){return this.type-u.type}equals(u){return u.type===this.type}substituteConstants(){return this}evaluate(u){return!0}serialize(){return"true"}keys(){return[]}negate(){return N.INSTANCE}}I.INSTANCE=new I;class E{constructor(u,v){this.key=u,this.negated=v,this.type=2}static create(u,v=null){const A=y.get(u);return typeof A=="boolean"?A?I.INSTANCE:N.INSTANCE:new E(u,v)}cmp(u){return u.type!==this.type?this.type-u.type:F(this.key,u.key)}equals(u){return u.type===this.type?this.key===u.key:!1}substituteConstants(){const u=y.get(this.key);return typeof u=="boolean"?u?I.INSTANCE:N.INSTANCE:this}evaluate(u){return!!u.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this)),this.negated}}class f{constructor(u,v,A){this.key=u,this.value=v,this.negated=A,this.type=4}static create(u,v,A=null){if(typeof v=="boolean")return v?E.create(u,A):T.create(u,A);const l=y.get(u);if(typeof l=="boolean"){const C=l?"true":"false";return v===C?I.INSTANCE:N.INSTANCE}return new f(u,v,A)}cmp(u){return u.type!==this.type?this.type-u.type:K(this.key,this.value,u.key,u.value)}equals(u){return u.type===this.type?this.key===u.key&&this.value===u.value:!1}substituteConstants(){const u=y.get(this.key);if(typeof u=="boolean"){const v=u?"true":"false";return this.value===v?I.INSTANCE:N.INSTANCE}return this}evaluate(u){return u.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this.value,this)),this.negated}}class d{constructor(u,v){this.key=u,this.valueKey=v,this.type=10,this.negated=null}static create(u,v){return new d(u,v)}cmp(u){return u.type!==this.type?this.type-u.type:K(this.key,this.valueKey,u.key,u.valueKey)}equals(u){return u.type===this.type?this.key===u.key&&this.valueKey===u.valueKey:!1}substituteConstants(){return this}evaluate(u){const v=u.getValue(this.valueKey),A=u.getValue(this.key);return Array.isArray(v)?v.indexOf(A)>=0:typeof A=="string"&&typeof v=="object"&&v!==null?R.call(v,A):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=h.create(this)),this.negated}}class h{constructor(u){this._actual=u,this.type=11}static create(u){return new h(u)}cmp(u){return u.type!==this.type?this.type-u.type:this._actual.cmp(u._actual)}equals(u){return u.type===this.type?this._actual.equals(u._actual):!1}substituteConstants(){return this}evaluate(u){return!this._actual.evaluate(u)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class p{constructor(u,v,A){this.key=u,this.value=v,this.negated=A,this.type=5}static create(u,v,A=null){if(typeof v=="boolean")return v?T.create(u,A):E.create(u,A);const l=y.get(u);if(typeof l=="boolean"){const C=l?"true":"false";return v===C?N.INSTANCE:I.INSTANCE}return new p(u,v,A)}cmp(u){return u.type!==this.type?this.type-u.type:K(this.key,this.value,u.key,u.value)}equals(u){return u.type===this.type?this.key===u.key&&this.value===u.value:!1}substituteConstants(){const u=y.get(this.key);if(typeof u=="boolean"){const v=u?"true":"false";return this.value===v?N.INSTANCE:I.INSTANCE}return this}evaluate(u){return u.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class T{constructor(u,v){this.key=u,this.negated=v,this.type=3}static create(u,v=null){const A=y.get(u);return typeof A=="boolean"?A?N.INSTANCE:I.INSTANCE:new T(u,v)}cmp(u){return u.type!==this.type?this.type-u.type:F(this.key,u.key)}equals(u){return u.type===this.type?this.key===u.key:!1}substituteConstants(){const u=y.get(this.key);return typeof u=="boolean"?u?N.INSTANCE:I.INSTANCE:this}evaluate(u){return!u.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this)),this.negated}}function W(u,v){if(typeof u=="string"){const A=parseFloat(u);isNaN(A)||(u=A)}return typeof u=="string"||typeof u=="number"?v(u):N.INSTANCE}class _{constructor(u,v,A){this.key=u,this.value=v,this.negated=A,this.type=12}static create(u,v,A=null){return W(v,l=>new _(u,l,A))}cmp(u){return u.type!==this.type?this.type-u.type:K(this.key,this.value,u.key,u.value)}equals(u){return u.type===this.type?this.key===u.key&&this.value===u.value:!1}substituteConstants(){return this}evaluate(u){return typeof this.value=="string"?!1:parseFloat(u.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=Q.create(this.key,this.value,this)),this.negated}}class g{constructor(u,v,A){this.key=u,this.value=v,this.negated=A,this.type=13}static create(u,v,A=null){return W(v,l=>new g(u,l,A))}cmp(u){return u.type!==this.type?this.type-u.type:K(this.key,this.value,u.key,u.value)}equals(u){return u.type===this.type?this.key===u.key&&this.value===u.value:!1}substituteConstants(){return this}evaluate(u){return typeof this.value=="string"?!1:parseFloat(u.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=j.create(this.key,this.value,this)),this.negated}}class j{constructor(u,v,A){this.key=u,this.value=v,this.negated=A,this.type=14}static create(u,v,A=null){return W(v,l=>new j(u,l,A))}cmp(u){return u.type!==this.type?this.type-u.type:K(this.key,this.value,u.key,u.value)}equals(u){return u.type===this.type?this.key===u.key&&this.value===u.value:!1}substituteConstants(){return this}evaluate(u){return typeof this.value=="string"?!1:parseFloat(u.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=g.create(this.key,this.value,this)),this.negated}}class Q{constructor(u,v,A){this.key=u,this.value=v,this.negated=A,this.type=15}static create(u,v,A=null){return W(v,l=>new Q(u,l,A))}cmp(u){return u.type!==this.type?this.type-u.type:K(this.key,this.value,u.key,u.value)}equals(u){return u.type===this.type?this.key===u.key&&this.value===u.value:!1}substituteConstants(){return this}evaluate(u){return typeof this.value=="string"?!1:parseFloat(u.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class J{constructor(u,v){this.key=u,this.regexp=v,this.type=7,this.negated=null}static create(u,v){return new J(u,v)}cmp(u){if(u.type!==this.type)return this.type-u.type;if(this.key<u.key)return-1;if(this.key>u.key)return 1;const v=this.regexp?this.regexp.source:"",A=u.regexp?u.regexp.source:"";return v<A?-1:v>A?1:0}equals(u){if(u.type===this.type){const v=this.regexp?this.regexp.source:"",A=u.regexp?u.regexp.source:"";return this.key===u.key&&v===A}return!1}substituteConstants(){return this}evaluate(u){let v=u.getValue(this.key);return this.regexp?this.regexp.test(v):!1}serialize(){const u=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${u}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=P.create(this)),this.negated}}class P{constructor(u){this._actual=u,this.type=8}static create(u){return new P(u)}cmp(u){return u.type!==this.type?this.type-u.type:this._actual.cmp(u._actual)}equals(u){return u.type===this.type?this._actual.equals(u._actual):!1}substituteConstants(){return this}evaluate(u){return!this._actual.evaluate(u)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function te(u){let v=null;for(let A=0,l=u.length;A<l;A++){const C=u[A].substituteConstants();if(u[A]!==C&&v===null){v=[];for(let D=0;D<A;D++)v[D]=u[D]}v!==null&&(v[A]=C)}return v===null?u:v}class H{constructor(u,v){this.expr=u,this.negated=v,this.type=6}static create(u,v){return H._normalizeArr(u,v)}cmp(u){if(u.type!==this.type)return this.type-u.type;if(this.expr.length<u.expr.length)return-1;if(this.expr.length>u.expr.length)return 1;for(let v=0,A=this.expr.length;v<A;v++){const l=a(this.expr[v],u.expr[v]);if(l!==0)return l}return 0}equals(u){if(u.type===this.type){if(this.expr.length!==u.expr.length)return!1;for(let v=0,A=this.expr.length;v<A;v++)if(!this.expr[v].equals(u.expr[v]))return!1;return!0}return!1}substituteConstants(){const u=te(this.expr);return u===this.expr?this:H.create(u,this.negated)}evaluate(u){for(let v=0,A=this.expr.length;v<A;v++)if(!this.expr[v].evaluate(u))return!1;return!0}static _normalizeArr(u,v){const A=[];let l=!1;for(const C of u){if(!C)continue;if(C.type===1){l=!0;continue}if(C.type===0)return N.INSTANCE;if(C.type===6){A.push(...C.expr);continue}A.push(C)}if(A.length===0&&l)return I.INSTANCE;if(A.length===0)return;if(A.length===1)return A[0];A.sort(a);for(let C=1;C<A.length;C++)A[C-1].equals(A[C])&&(A.splice(C,1),C--);if(A.length===1)return A[0];for(;A.length>1;){const C=A[A.length-1];if(C.type!==9)break;A.pop();const D=A.pop(),he=A.length===0,_e=le.create(C.expr.map(Ae=>H.create([Ae,D],null)),null,he);_e&&(A.push(_e),A.sort(a))}return A.length===1?A[0]:new H(A,v)}serialize(){return this.expr.map(u=>u.serialize()).join(" && ")}keys(){const u=[];for(let v of this.expr)u.push(...v.keys());return u}negate(){if(!this.negated){const u=[];for(let v of this.expr)u.push(v.negate());this.negated=le.create(u,this,!0)}return this.negated}}class le{constructor(u,v){this.expr=u,this.negated=v,this.type=9}static create(u,v,A){return le._normalizeArr(u,v,A)}cmp(u){if(u.type!==this.type)return this.type-u.type;if(this.expr.length<u.expr.length)return-1;if(this.expr.length>u.expr.length)return 1;for(let v=0,A=this.expr.length;v<A;v++){const l=a(this.expr[v],u.expr[v]);if(l!==0)return l}return 0}equals(u){if(u.type===this.type){if(this.expr.length!==u.expr.length)return!1;for(let v=0,A=this.expr.length;v<A;v++)if(!this.expr[v].equals(u.expr[v]))return!1;return!0}return!1}substituteConstants(){const u=te(this.expr);return u===this.expr?this:le.create(u,this.negated,!1)}evaluate(u){for(let v=0,A=this.expr.length;v<A;v++)if(this.expr[v].evaluate(u))return!0;return!1}static _normalizeArr(u,v,A){let l=[],C=!1;if(u){for(let D=0,he=u.length;D<he;D++){const _e=u[D];if(!_e)continue;if(_e.type===0){C=!0;continue}if(_e.type===1)return I.INSTANCE;if(_e.type===9){l=l.concat(_e.expr);continue}l.push(_e)}if(l.length===0&&C)return N.INSTANCE;l.sort(a)}if(l.length===0)return;if(l.length===1)return l[0];for(let D=1;D<l.length;D++)l[D-1].equals(l[D])&&(l.splice(D,1),D--);if(l.length===1)return l[0];if(A){for(let D=0;D<l.length;D++)for(let he=D+1;he<l.length;he++)xe(l[D],l[he])&&(l.splice(he,1),he--);if(l.length===1)return l[0]}return new le(l,v)}serialize(){return this.expr.map(u=>u.serialize()).join(" || ")}keys(){const u=[];for(let v of this.expr)u.push(...v.keys());return u}negate(){if(!this.negated){let u=[];for(let v of this.expr)u.push(v.negate());for(;u.length>1;){const v=u.shift(),A=u.shift(),l=[];for(const D of M(v))for(const he of M(A))l.push(H.create([D,he],null));const C=u.length===0;u.unshift(le.create(l,null,C))}this.negated=u[0]}return this.negated}}class ye extends E{constructor(u,v,A){super(u,null);this._defaultValue=v,typeof A=="object"?ye._info.push(Object.assign(Object.assign({},A),{key:u})):A!==!0&&ye._info.push({key:u,description:A,type:v!=null?typeof v:void 0})}static all(){return ye._info.values()}bindTo(u){return u.createKey(this.key,this._defaultValue)}getValue(u){return u.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(u){return f.create(this.key,u)}}ye._info=[];const ge=Object(Ie.c)("contextKeyService"),z="setContext";function F(u,v){return u<v?-1:u>v?1:0}function K(u,v,A,l){return u<A?-1:u>A?1:v<l?-1:v>l?1:0}function xe(u,v){if(v.type===6&&u.type!==9&&u.type!==6){for(const C of v.expr)if(u.equals(C))return!0}const A=u.negate(),l=M(A).concat(M(v));l.sort(a);for(let C=0;C<l.length;C++){const D=l[C],he=D.negate();for(let _e=C+1;_e<l.length;_e++){const Ae=l[_e];if(he.equals(Ae))return!0}}return!1}function M(u){return u.type===9?u.expr:[u]}},TGq3:function(De,L,s){De.exports=s.p+"static/lockclose.365036e8.svg"},TXba:function(De,L,s){De.exports={wrap:"wrap___3g908",content:"content___DKfAL",mainPathWrap:"mainPathWrap___1gVR9",colorBlue:"colorBlue___10YHC"}},TXwP:function(De,L,s){var re,ie;(function(){var Ie;(function(){"use strict";var y=[,,function(a){function N(f){this.__parent=f,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}N.prototype.clone_empty=function(){var f=new N(this.__parent);return f.set_indent(this.__indent_count,this.__alignment_count),f},N.prototype.item=function(f){return f<0?this.__items[this.__items.length+f]:this.__items[f]},N.prototype.has_match=function(f){for(var d=this.__items.length-1;d>=0;d--)if(this.__items[d].match(f))return!0;return!1},N.prototype.set_indent=function(f,d){this.is_empty()&&(this.__indent_count=f||0,this.__alignment_count=d||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},N.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},N.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},N.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var f=this.__parent.current_line;return f.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),f.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),f.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,f.__items[0]===" "&&(f.__items.splice(0,1),f.__character_count-=1),!0}return!1},N.prototype.is_empty=function(){return this.__items.length===0},N.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},N.prototype.push=function(f){this.__items.push(f);var d=f.lastIndexOf(`
|
|
`);d!==-1?this.__character_count=f.length-d:this.__character_count+=f.length},N.prototype.pop=function(){var f=null;return this.is_empty()||(f=this.__items.pop(),this.__character_count-=f.length),f},N.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},N.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},N.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},N.prototype.toString=function(){var f="";return this.is_empty()?this.__parent.indent_empty_lines&&(f=this.__parent.get_indent_string(this.__indent_count)):(f=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),f+=this.__items.join("")),f};function I(f,d){this.__cache=[""],this.__indent_size=f.indent_size,this.__indent_string=f.indent_char,f.indent_with_tabs||(this.__indent_string=new Array(f.indent_size+1).join(f.indent_char)),d=d||"",f.indent_level>0&&(d=new Array(f.indent_level+1).join(this.__indent_string)),this.__base_string=d,this.__base_string_length=d.length}I.prototype.get_indent_size=function(f,d){var h=this.__base_string_length;return d=d||0,f<0&&(h=0),h+=f*this.__indent_size,h+=d,h},I.prototype.get_indent_string=function(f,d){var h=this.__base_string;return d=d||0,f<0&&(f=0,h=""),d+=f*this.__indent_size,this.__ensure_cache(d),h+=this.__cache[d],h},I.prototype.__ensure_cache=function(f){for(;f>=this.__cache.length;)this.__add_column()},I.prototype.__add_column=function(){var f=this.__cache.length,d=0,h="";this.__indent_size&&f>=this.__indent_size&&(d=Math.floor(f/this.__indent_size),f-=d*this.__indent_size,h=new Array(d+1).join(this.__indent_string)),f&&(h+=new Array(f+1).join(" ")),this.__cache.push(h)};function E(f,d){this.__indent_cache=new I(f,d),this.raw=!1,this._end_with_newline=f.end_with_newline,this.indent_size=f.indent_size,this.wrap_line_length=f.wrap_line_length,this.indent_empty_lines=f.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new N(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}E.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},E.prototype.get_line_number=function(){return this.__lines.length},E.prototype.get_indent_string=function(f,d){return this.__indent_cache.get_indent_string(f,d)},E.prototype.get_indent_size=function(f,d){return this.__indent_cache.get_indent_size(f,d)},E.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},E.prototype.add_new_line=function(f){return this.is_empty()||!f&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},E.prototype.get_code=function(f){this.trim(!0);var d=this.current_line.pop();d&&(d[d.length-1]===`
|
|
`&&(d=d.replace(/\n+$/g,"")),this.current_line.push(d)),this._end_with_newline&&this.__add_outputline();var h=this.__lines.join(`
|
|
`);return f!==`
|
|
`&&(h=h.replace(/[\n]/g,f)),h},E.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},E.prototype.set_indent=function(f,d){return f=f||0,d=d||0,this.next_line.set_indent(f,d),this.__lines.length>1?(this.current_line.set_indent(f,d),!0):(this.current_line.set_indent(),!1)},E.prototype.add_raw_token=function(f){for(var d=0;d<f.newlines;d++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(f.whitespace_before),this.current_line.push(f.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},E.prototype.add_token=function(f){this.__add_space_before_token(),this.current_line.push(f),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},E.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},E.prototype.remove_indent=function(f){for(var d=this.__lines.length;f<d;)this.__lines[f]._remove_indent(),f++;this.current_line._remove_wrap_indent()},E.prototype.trim=function(f){for(f=f===void 0?!1:f,this.current_line.trim();f&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},E.prototype.just_added_newline=function(){return this.current_line.is_empty()},E.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},E.prototype.ensure_empty_line_above=function(f,d){for(var h=this.__lines.length-2;h>=0;){var p=this.__lines[h];if(p.is_empty())break;if(p.item(0).indexOf(f)!==0&&p.item(-1)!==d){this.__lines.splice(h+1,0,new N(this)),this.previous_line=this.__lines[this.__lines.length-2];break}h--}},a.exports.Output=E},,,,function(a){function N(f,d){this.raw_options=I(f,d),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}N.prototype._get_array=function(f,d){var h=this.raw_options[f],p=d||[];return typeof h=="object"?h!==null&&typeof h.concat=="function"&&(p=h.concat()):typeof h=="string"&&(p=h.split(/[^a-zA-Z0-9_\/\-]+/)),p},N.prototype._get_boolean=function(f,d){var h=this.raw_options[f],p=h===void 0?!!d:!!h;return p},N.prototype._get_characters=function(f,d){var h=this.raw_options[f],p=d||"";return typeof h=="string"&&(p=h.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),p},N.prototype._get_number=function(f,d){var h=this.raw_options[f];d=parseInt(d,10),isNaN(d)&&(d=0);var p=parseInt(h,10);return isNaN(p)&&(p=d),p},N.prototype._get_selection=function(f,d,h){var p=this._get_selection_list(f,d,h);if(p.length!==1)throw new Error("Invalid Option Value: The option '"+f+`' can only be one of the following values:
|
|
`+d+`
|
|
You passed in: '`+this.raw_options[f]+"'");return p[0]},N.prototype._get_selection_list=function(f,d,h){if(!d||d.length===0)throw new Error("Selection list cannot be empty.");if(h=h||[d[0]],!this._is_valid_selection(h,d))throw new Error("Invalid Default Value!");var p=this._get_array(f,h);if(!this._is_valid_selection(p,d))throw new Error("Invalid Option Value: The option '"+f+`' can contain only the following values:
|
|
`+d+`
|
|
You passed in: '`+this.raw_options[f]+"'");return p},N.prototype._is_valid_selection=function(f,d){return f.length&&d.length&&!f.some(function(h){return d.indexOf(h)===-1})};function I(f,d){var h={};f=E(f);var p;for(p in f)p!==d&&(h[p]=f[p]);if(d&&f[d])for(p in f[d])h[p]=f[d][p];return h}function E(f){var d={},h;for(h in f){var p=h.replace(/-/g,"_");d[p]=f[h]}return d}a.exports.Options=N,a.exports.normalizeOpts=E,a.exports.mergeOpts=I},,function(a){var N=RegExp.prototype.hasOwnProperty("sticky");function I(E){this.__input=E||"",this.__input_length=this.__input.length,this.__position=0}I.prototype.restart=function(){this.__position=0},I.prototype.back=function(){this.__position>0&&(this.__position-=1)},I.prototype.hasNext=function(){return this.__position<this.__input_length},I.prototype.next=function(){var E=null;return this.hasNext()&&(E=this.__input.charAt(this.__position),this.__position+=1),E},I.prototype.peek=function(E){var f=null;return E=E||0,E+=this.__position,E>=0&&E<this.__input_length&&(f=this.__input.charAt(E)),f},I.prototype.__match=function(E,f){E.lastIndex=f;var d=E.exec(this.__input);return d&&!(N&&E.sticky)&&(d.index!==f&&(d=null)),d},I.prototype.test=function(E,f){return f=f||0,f+=this.__position,f>=0&&f<this.__input_length?!!this.__match(E,f):!1},I.prototype.testChar=function(E,f){var d=this.peek(f);return E.lastIndex=0,d!==null&&E.test(d)},I.prototype.match=function(E){var f=this.__match(E,this.__position);return f?this.__position+=f[0].length:f=null,f},I.prototype.read=function(E,f,d){var h="",p;return E&&(p=this.match(E),p&&(h+=p[0])),f&&(p||!E)&&(h+=this.readUntil(f,d)),h},I.prototype.readUntil=function(E,f){var d="",h=this.__position;E.lastIndex=this.__position;var p=E.exec(this.__input);return p?(h=p.index,f&&(h+=p[0].length)):h=this.__input_length,d=this.__input.substring(this.__position,h),this.__position=h,d},I.prototype.readUntilAfter=function(E){return this.readUntil(E,!0)},I.prototype.get_regexp=function(E,f){var d=null,h="g";return f&&N&&(h="y"),typeof E=="string"&&E!==""?d=new RegExp(E,h):E&&(d=new RegExp(E.source,h)),d},I.prototype.get_literal_regexp=function(E){return RegExp(E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},I.prototype.peekUntilAfter=function(E){var f=this.__position,d=this.readUntilAfter(E);return this.__position=f,d},I.prototype.lookBack=function(E){var f=this.__position-1;return f>=E.length&&this.__input.substring(f-E.length,f).toLowerCase()===E},a.exports.InputScanner=I},,,,,function(a){function N(I,E){I=typeof I=="string"?I:I.source,E=typeof E=="string"?E:E.source,this.__directives_block_pattern=new RegExp(I+/ beautify( \w+[:]\w+)+ /.source+E,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(I+/\sbeautify\signore:end\s/.source+E,"g")}N.prototype.get_directives=function(I){if(!I.match(this.__directives_block_pattern))return null;var E={};this.__directive_pattern.lastIndex=0;for(var f=this.__directive_pattern.exec(I);f;)E[f[1]]=f[2],f=this.__directive_pattern.exec(I);return E},N.prototype.readIgnored=function(I){return I.readUntilAfter(this.__directives_end_ignore_pattern)},a.exports.Directives=N},,function(a,N,I){var E=I(16).Beautifier,f=I(17).Options;function d(h,p){var T=new E(h,p);return T.beautify()}a.exports=d,a.exports.defaultOptions=function(){return new f}},function(a,N,I){var E=I(17).Options,f=I(2).Output,d=I(8).InputScanner,h=I(13).Directives,p=new h(/\/\*/,/\*\//),T=/\r\n|[\r\n]/,W=/\r\n|[\r\n]/g,_=/\s/,g=/(?:\s|\n)+/g,j=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,Q=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function J(P,te){this._source_text=P||"",this._options=new E(te),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}J.prototype.eatString=function(P){var te="";for(this._ch=this._input.next();this._ch;){if(te+=this._ch,this._ch==="\\")te+=this._input.next();else if(P.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return te},J.prototype.eatWhitespace=function(P){for(var te=_.test(this._input.peek()),H=0;_.test(this._input.peek());)this._ch=this._input.next(),P&&this._ch===`
|
|
`&&((H===0||H<this._options.max_preserve_newlines)&&(H++,this._output.add_new_line(!0)));return te},J.prototype.foundNestedPseudoClass=function(){for(var P=0,te=1,H=this._input.peek(te);H;){if(H==="{")return!0;if(H==="(")P+=1;else if(H===")"){if(P===0)return!1;P-=1}else if(H===";"||H==="}")return!1;te++,H=this._input.peek(te)}return!1},J.prototype.print_string=function(P){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(P)},J.prototype.preserveSingleSpace=function(P){P&&(this._output.space_before_token=!0)},J.prototype.indent=function(){this._indentLevel++},J.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},J.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P=this._source_text,te=this._options.eol;te==="auto"&&(te=`
|
|
`,P&&T.test(P||"")&&(te=P.match(T)[0])),P=P.replace(W,`
|
|
`);var H=P.match(/^[\t ]*/)[0];this._output=new f(this._options,H),this._input=new d(P),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var le=0,ye=!1,ge=!1,z=!1,F=!1,K=!1,xe=!1,M=this._ch,u=!1,v,A,l;v=this._input.read(g),A=v!=="",l=M,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),M=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var C=this._input.read(j),D=p.get_directives(C);D&&D.ignore==="start"&&(C+=p.readIgnored(this._input)),this.print_string(C),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(Q)),this.eatWhitespace(!0);else if(this._ch==="@"||this._ch==="$")if(this.preserveSingleSpace(A),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var he=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);he.match(/[ :]$/)&&(he=this.eatString(": ").replace(/\s$/,""),this.print_string(he),this._output.space_before_token=!0),he=he.replace(/\s$/,""),he==="extend"?F=!0:he==="import"&&(K=!0),he in this.NESTED_AT_RULE?(this._nestedLevel+=1,he in this.CONDITIONAL_GROUP_RULE&&(z=!0)):!ye&&le===0&&he.indexOf(":")!==-1&&(ge=!0,this.indent())}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(A),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")ge&&(ge=!1,this.outdent()),z?(z=!1,ye=this._indentLevel>=this._nestedLevel):ye=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&ye&&(this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",",")),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(l==="("?this._output.space_before_token=!1:l!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),l==="{"&&this._output.trim(!0),K=!1,F=!1,ge&&(this.outdent(),ge=!1),this.print_string(this._ch),ye=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&(this._input.peek()!=="}"&&this._output.add_new_line(!0)),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var _e=0;_e<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;_e++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[_e])){u=!0;break}(ye||z)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!F&&le===0?(this.print_string(":"),ge||(ge=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Ae=l==='"'||l==="'";this.preserveSingleSpace(Ae||A),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")u=!1,le===0?(ge&&(this.outdent(),ge=!1),F=!1,K=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),le++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),le&&(le--,this.outdent()));else{var be=!1;this._input.lookBack("with")&&(be=!0),this.preserveSingleSpace(A||be),this.print_string(this._ch),ge&&l==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),xe=!0):(this.eatWhitespace(),le++,this.indent())}else if(this._ch===")")le&&(le--,this.outdent()),xe&&this._input.peek()===";"&&this._options.selector_separator_newline&&(xe=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!ge||xe)&&le===0&&!K&&!F?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!ge&&le===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&_.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(A),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),_.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var G=l==='"'||l==="'";this.preserveSingleSpace(G||A),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&u&&this._output.add_new_line()}var $=this._output.get_code(te);return $},a.exports.Beautifier=J},function(a,N,I){var E=I(6).Options;function f(d){E.call(this,d,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var h=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||h;var p=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var T=0;T<p.length;T++)p[T]!=="expand"?this.brace_style="collapse":this.brace_style=p[T]}f.prototype=new E,a.exports.Options=f}],R={};function ue(a){var N=R[a];if(N!==void 0)return N.exports;var I=R[a]={exports:{}};return y[a](I,I.exports,ue),I.exports}var se=ue(15);Ie=se})();var ae=Ie;!(re=[],ie=function(){return{css_beautify:ae}}.apply(L,re),ie!==void 0&&(De.exports=ie))})()},Vhoy:function(De,L,s){"use strict";s.d(L,"d",function(){return ae}),s.d(L,"e",function(){return y}),s.d(L,"c",function(){return R}),s.d(L,"b",function(){return ue}),s.d(L,"a",function(){return se});var re=s("MI8n");class ie{constructor(){this._icons=new Map,this._onDidRegister=new re.b}add(a){const N=this._icons.get(a.id);N?a.description?N.description=a.description:console.error(`Duplicate registration of codicon ${a.id}`):(this._icons.set(a.id,a),this._onDidRegister.fire(a))}get(a){return this._icons.get(a)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const Ie=new ie,ae=Ie;function y(a,N){return new ue(a,N)}function R(a){return a?a.replace(/\$\((.*?)\)/g,(N,I)=>` ${I} `).trim():""}class ue{constructor(a,N,I){this.id=a,this.definition=N,this.description=I,Ie.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var se;(function(a){a.iconNameSegment="[A-Za-z0-9]+",a.iconNameExpression="[A-Za-z0-9\\-]+",a.iconModifierExpression="~[A-Za-z]+";const N=new RegExp(`^(${a.iconNameExpression})(${a.iconModifierExpression})?$`);function I(d){if(d instanceof ue)return["codicon","codicon-"+d.id];const h=N.exec(d.id);if(!h)return I(ue.error);let[,p,T]=h;const W=["codicon","codicon-"+p];return T&&W.push("codicon-modifier-"+T.substr(1)),W}a.asClassNameArray=I;function E(d){return I(d).join(" ")}a.asClassName=E;function f(d){return"."+I(d).join(".")}a.asCSSSelector=f})(se||(se={})),function(a){a.add=new a("add",{fontCharacter:"\\ea60"}),a.plus=new a("plus",a.add.definition),a.gistNew=new a("gist-new",a.add.definition),a.repoCreate=new a("repo-create",a.add.definition),a.lightbulb=new a("lightbulb",{fontCharacter:"\\ea61"}),a.lightBulb=new a("light-bulb",{fontCharacter:"\\ea61"}),a.repo=new a("repo",{fontCharacter:"\\ea62"}),a.repoDelete=new a("repo-delete",{fontCharacter:"\\ea62"}),a.gistFork=new a("gist-fork",{fontCharacter:"\\ea63"}),a.repoForked=new a("repo-forked",{fontCharacter:"\\ea63"}),a.gitPullRequest=new a("git-pull-request",{fontCharacter:"\\ea64"}),a.gitPullRequestAbandoned=new a("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),a.recordKeys=new a("record-keys",{fontCharacter:"\\ea65"}),a.keyboard=new a("keyboard",{fontCharacter:"\\ea65"}),a.tag=new a("tag",{fontCharacter:"\\ea66"}),a.tagAdd=new a("tag-add",{fontCharacter:"\\ea66"}),a.tagRemove=new a("tag-remove",{fontCharacter:"\\ea66"}),a.person=new a("person",{fontCharacter:"\\ea67"}),a.personFollow=new a("person-follow",{fontCharacter:"\\ea67"}),a.personOutline=new a("person-outline",{fontCharacter:"\\ea67"}),a.personFilled=new a("person-filled",{fontCharacter:"\\ea67"}),a.gitBranch=new a("git-branch",{fontCharacter:"\\ea68"}),a.gitBranchCreate=new a("git-branch-create",{fontCharacter:"\\ea68"}),a.gitBranchDelete=new a("git-branch-delete",{fontCharacter:"\\ea68"}),a.sourceControl=new a("source-control",{fontCharacter:"\\ea68"}),a.mirror=new a("mirror",{fontCharacter:"\\ea69"}),a.mirrorPublic=new a("mirror-public",{fontCharacter:"\\ea69"}),a.star=new a("star",{fontCharacter:"\\ea6a"}),a.starAdd=new a("star-add",{fontCharacter:"\\ea6a"}),a.starDelete=new a("star-delete",{fontCharacter:"\\ea6a"}),a.starEmpty=new a("star-empty",{fontCharacter:"\\ea6a"}),a.comment=new a("comment",{fontCharacter:"\\ea6b"}),a.commentAdd=new a("comment-add",{fontCharacter:"\\ea6b"}),a.alert=new a("alert",{fontCharacter:"\\ea6c"}),a.warning=new a("warning",{fontCharacter:"\\ea6c"}),a.search=new a("search",{fontCharacter:"\\ea6d"}),a.searchSave=new a("search-save",{fontCharacter:"\\ea6d"}),a.logOut=new a("log-out",{fontCharacter:"\\ea6e"}),a.signOut=new a("sign-out",{fontCharacter:"\\ea6e"}),a.logIn=new a("log-in",{fontCharacter:"\\ea6f"}),a.signIn=new a("sign-in",{fontCharacter:"\\ea6f"}),a.eye=new a("eye",{fontCharacter:"\\ea70"}),a.eyeUnwatch=new a("eye-unwatch",{fontCharacter:"\\ea70"}),a.eyeWatch=new a("eye-watch",{fontCharacter:"\\ea70"}),a.circleFilled=new a("circle-filled",{fontCharacter:"\\ea71"}),a.primitiveDot=new a("primitive-dot",{fontCharacter:"\\ea71"}),a.closeDirty=new a("close-dirty",{fontCharacter:"\\ea71"}),a.debugBreakpoint=new a("debug-breakpoint",{fontCharacter:"\\ea71"}),a.debugBreakpointDisabled=new a("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),a.debugHint=new a("debug-hint",{fontCharacter:"\\ea71"}),a.primitiveSquare=new a("primitive-square",{fontCharacter:"\\ea72"}),a.edit=new a("edit",{fontCharacter:"\\ea73"}),a.pencil=new a("pencil",{fontCharacter:"\\ea73"}),a.info=new a("info",{fontCharacter:"\\ea74"}),a.issueOpened=new a("issue-opened",{fontCharacter:"\\ea74"}),a.gistPrivate=new a("gist-private",{fontCharacter:"\\ea75"}),a.gitForkPrivate=new a("git-fork-private",{fontCharacter:"\\ea75"}),a.lock=new a("lock",{fontCharacter:"\\ea75"}),a.mirrorPrivate=new a("mirror-private",{fontCharacter:"\\ea75"}),a.close=new a("close",{fontCharacter:"\\ea76"}),a.removeClose=new a("remove-close",{fontCharacter:"\\ea76"}),a.x=new a("x",{fontCharacter:"\\ea76"}),a.repoSync=new a("repo-sync",{fontCharacter:"\\ea77"}),a.sync=new a("sync",{fontCharacter:"\\ea77"}),a.clone=new a("clone",{fontCharacter:"\\ea78"}),a.desktopDownload=new a("desktop-download",{fontCharacter:"\\ea78"}),a.beaker=new a("beaker",{fontCharacter:"\\ea79"}),a.microscope=new a("microscope",{fontCharacter:"\\ea79"}),a.vm=new a("vm",{fontCharacter:"\\ea7a"}),a.deviceDesktop=new a("device-desktop",{fontCharacter:"\\ea7a"}),a.file=new a("file",{fontCharacter:"\\ea7b"}),a.fileText=new a("file-text",{fontCharacter:"\\ea7b"}),a.more=new a("more",{fontCharacter:"\\ea7c"}),a.ellipsis=new a("ellipsis",{fontCharacter:"\\ea7c"}),a.kebabHorizontal=new a("kebab-horizontal",{fontCharacter:"\\ea7c"}),a.mailReply=new a("mail-reply",{fontCharacter:"\\ea7d"}),a.reply=new a("reply",{fontCharacter:"\\ea7d"}),a.organization=new a("organization",{fontCharacter:"\\ea7e"}),a.organizationFilled=new a("organization-filled",{fontCharacter:"\\ea7e"}),a.organizationOutline=new a("organization-outline",{fontCharacter:"\\ea7e"}),a.newFile=new a("new-file",{fontCharacter:"\\ea7f"}),a.fileAdd=new a("file-add",{fontCharacter:"\\ea7f"}),a.newFolder=new a("new-folder",{fontCharacter:"\\ea80"}),a.fileDirectoryCreate=new a("file-directory-create",{fontCharacter:"\\ea80"}),a.trash=new a("trash",{fontCharacter:"\\ea81"}),a.trashcan=new a("trashcan",{fontCharacter:"\\ea81"}),a.history=new a("history",{fontCharacter:"\\ea82"}),a.clock=new a("clock",{fontCharacter:"\\ea82"}),a.folder=new a("folder",{fontCharacter:"\\ea83"}),a.fileDirectory=new a("file-directory",{fontCharacter:"\\ea83"}),a.symbolFolder=new a("symbol-folder",{fontCharacter:"\\ea83"}),a.logoGithub=new a("logo-github",{fontCharacter:"\\ea84"}),a.markGithub=new a("mark-github",{fontCharacter:"\\ea84"}),a.github=new a("github",{fontCharacter:"\\ea84"}),a.terminal=new a("terminal",{fontCharacter:"\\ea85"}),a.console=new a("console",{fontCharacter:"\\ea85"}),a.repl=new a("repl",{fontCharacter:"\\ea85"}),a.zap=new a("zap",{fontCharacter:"\\ea86"}),a.symbolEvent=new a("symbol-event",{fontCharacter:"\\ea86"}),a.error=new a("error",{fontCharacter:"\\ea87"}),a.stop=new a("stop",{fontCharacter:"\\ea87"}),a.variable=new a("variable",{fontCharacter:"\\ea88"}),a.symbolVariable=new a("symbol-variable",{fontCharacter:"\\ea88"}),a.array=new a("array",{fontCharacter:"\\ea8a"}),a.symbolArray=new a("symbol-array",{fontCharacter:"\\ea8a"}),a.symbolModule=new a("symbol-module",{fontCharacter:"\\ea8b"}),a.symbolPackage=new a("symbol-package",{fontCharacter:"\\ea8b"}),a.symbolNamespace=new a("symbol-namespace",{fontCharacter:"\\ea8b"}),a.symbolObject=new a("symbol-object",{fontCharacter:"\\ea8b"}),a.symbolMethod=new a("symbol-method",{fontCharacter:"\\ea8c"}),a.symbolFunction=new a("symbol-function",{fontCharacter:"\\ea8c"}),a.symbolConstructor=new a("symbol-constructor",{fontCharacter:"\\ea8c"}),a.symbolBoolean=new a("symbol-boolean",{fontCharacter:"\\ea8f"}),a.symbolNull=new a("symbol-null",{fontCharacter:"\\ea8f"}),a.symbolNumeric=new a("symbol-numeric",{fontCharacter:"\\ea90"}),a.symbolNumber=new a("symbol-number",{fontCharacter:"\\ea90"}),a.symbolStructure=new a("symbol-structure",{fontCharacter:"\\ea91"}),a.symbolStruct=new a("symbol-struct",{fontCharacter:"\\ea91"}),a.symbolParameter=new a("symbol-parameter",{fontCharacter:"\\ea92"}),a.symbolTypeParameter=new a("symbol-type-parameter",{fontCharacter:"\\ea92"}),a.symbolKey=new a("symbol-key",{fontCharacter:"\\ea93"}),a.symbolText=new a("symbol-text",{fontCharacter:"\\ea93"}),a.symbolReference=new a("symbol-reference",{fontCharacter:"\\ea94"}),a.goToFile=new a("go-to-file",{fontCharacter:"\\ea94"}),a.symbolEnum=new a("symbol-enum",{fontCharacter:"\\ea95"}),a.symbolValue=new a("symbol-value",{fontCharacter:"\\ea95"}),a.symbolRuler=new a("symbol-ruler",{fontCharacter:"\\ea96"}),a.symbolUnit=new a("symbol-unit",{fontCharacter:"\\ea96"}),a.activateBreakpoints=new a("activate-breakpoints",{fontCharacter:"\\ea97"}),a.archive=new a("archive",{fontCharacter:"\\ea98"}),a.arrowBoth=new a("arrow-both",{fontCharacter:"\\ea99"}),a.arrowDown=new a("arrow-down",{fontCharacter:"\\ea9a"}),a.arrowLeft=new a("arrow-left",{fontCharacter:"\\ea9b"}),a.arrowRight=new a("arrow-right",{fontCharacter:"\\ea9c"}),a.arrowSmallDown=new a("arrow-small-down",{fontCharacter:"\\ea9d"}),a.arrowSmallLeft=new a("arrow-small-left",{fontCharacter:"\\ea9e"}),a.arrowSmallRight=new a("arrow-small-right",{fontCharacter:"\\ea9f"}),a.arrowSmallUp=new a("arrow-small-up",{fontCharacter:"\\eaa0"}),a.arrowUp=new a("arrow-up",{fontCharacter:"\\eaa1"}),a.bell=new a("bell",{fontCharacter:"\\eaa2"}),a.bold=new a("bold",{fontCharacter:"\\eaa3"}),a.book=new a("book",{fontCharacter:"\\eaa4"}),a.bookmark=new a("bookmark",{fontCharacter:"\\eaa5"}),a.debugBreakpointConditionalUnverified=new a("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),a.debugBreakpointConditional=new a("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),a.debugBreakpointConditionalDisabled=new a("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),a.debugBreakpointDataUnverified=new a("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),a.debugBreakpointData=new a("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),a.debugBreakpointDataDisabled=new a("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),a.debugBreakpointLogUnverified=new a("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),a.debugBreakpointLog=new a("debug-breakpoint-log",{fontCharacter:"\\eaab"}),a.debugBreakpointLogDisabled=new a("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),a.briefcase=new a("briefcase",{fontCharacter:"\\eaac"}),a.broadcast=new a("broadcast",{fontCharacter:"\\eaad"}),a.browser=new a("browser",{fontCharacter:"\\eaae"}),a.bug=new a("bug",{fontCharacter:"\\eaaf"}),a.calendar=new a("calendar",{fontCharacter:"\\eab0"}),a.caseSensitive=new a("case-sensitive",{fontCharacter:"\\eab1"}),a.check=new a("check",{fontCharacter:"\\eab2"}),a.checklist=new a("checklist",{fontCharacter:"\\eab3"}),a.chevronDown=new a("chevron-down",{fontCharacter:"\\eab4"}),a.dropDownButton=new a("drop-down-button",a.chevronDown.definition),a.chevronLeft=new a("chevron-left",{fontCharacter:"\\eab5"}),a.chevronRight=new a("chevron-right",{fontCharacter:"\\eab6"}),a.chevronUp=new a("chevron-up",{fontCharacter:"\\eab7"}),a.chromeClose=new a("chrome-close",{fontCharacter:"\\eab8"}),a.chromeMaximize=new a("chrome-maximize",{fontCharacter:"\\eab9"}),a.chromeMinimize=new a("chrome-minimize",{fontCharacter:"\\eaba"}),a.chromeRestore=new a("chrome-restore",{fontCharacter:"\\eabb"}),a.circleOutline=new a("circle-outline",{fontCharacter:"\\eabc"}),a.debugBreakpointUnverified=new a("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),a.circleSlash=new a("circle-slash",{fontCharacter:"\\eabd"}),a.circuitBoard=new a("circuit-board",{fontCharacter:"\\eabe"}),a.clearAll=new a("clear-all",{fontCharacter:"\\eabf"}),a.clippy=new a("clippy",{fontCharacter:"\\eac0"}),a.closeAll=new a("close-all",{fontCharacter:"\\eac1"}),a.cloudDownload=new a("cloud-download",{fontCharacter:"\\eac2"}),a.cloudUpload=new a("cloud-upload",{fontCharacter:"\\eac3"}),a.code=new a("code",{fontCharacter:"\\eac4"}),a.collapseAll=new a("collapse-all",{fontCharacter:"\\eac5"}),a.colorMode=new a("color-mode",{fontCharacter:"\\eac6"}),a.commentDiscussion=new a("comment-discussion",{fontCharacter:"\\eac7"}),a.compareChanges=new a("compare-changes",{fontCharacter:"\\eafd"}),a.creditCard=new a("credit-card",{fontCharacter:"\\eac9"}),a.dash=new a("dash",{fontCharacter:"\\eacc"}),a.dashboard=new a("dashboard",{fontCharacter:"\\eacd"}),a.database=new a("database",{fontCharacter:"\\eace"}),a.debugContinue=new a("debug-continue",{fontCharacter:"\\eacf"}),a.debugDisconnect=new a("debug-disconnect",{fontCharacter:"\\ead0"}),a.debugPause=new a("debug-pause",{fontCharacter:"\\ead1"}),a.debugRestart=new a("debug-restart",{fontCharacter:"\\ead2"}),a.debugStart=new a("debug-start",{fontCharacter:"\\ead3"}),a.debugStepInto=new a("debug-step-into",{fontCharacter:"\\ead4"}),a.debugStepOut=new a("debug-step-out",{fontCharacter:"\\ead5"}),a.debugStepOver=new a("debug-step-over",{fontCharacter:"\\ead6"}),a.debugStop=new a("debug-stop",{fontCharacter:"\\ead7"}),a.debug=new a("debug",{fontCharacter:"\\ead8"}),a.deviceCameraVideo=new a("device-camera-video",{fontCharacter:"\\ead9"}),a.deviceCamera=new a("device-camera",{fontCharacter:"\\eada"}),a.deviceMobile=new a("device-mobile",{fontCharacter:"\\eadb"}),a.diffAdded=new a("diff-added",{fontCharacter:"\\eadc"}),a.diffIgnored=new a("diff-ignored",{fontCharacter:"\\eadd"}),a.diffModified=new a("diff-modified",{fontCharacter:"\\eade"}),a.diffRemoved=new a("diff-removed",{fontCharacter:"\\eadf"}),a.diffRenamed=new a("diff-renamed",{fontCharacter:"\\eae0"}),a.diff=new a("diff",{fontCharacter:"\\eae1"}),a.discard=new a("discard",{fontCharacter:"\\eae2"}),a.editorLayout=new a("editor-layout",{fontCharacter:"\\eae3"}),a.emptyWindow=new a("empty-window",{fontCharacter:"\\eae4"}),a.exclude=new a("exclude",{fontCharacter:"\\eae5"}),a.extensions=new a("extensions",{fontCharacter:"\\eae6"}),a.eyeClosed=new a("eye-closed",{fontCharacter:"\\eae7"}),a.fileBinary=new a("file-binary",{fontCharacter:"\\eae8"}),a.fileCode=new a("file-code",{fontCharacter:"\\eae9"}),a.fileMedia=new a("file-media",{fontCharacter:"\\eaea"}),a.filePdf=new a("file-pdf",{fontCharacter:"\\eaeb"}),a.fileSubmodule=new a("file-submodule",{fontCharacter:"\\eaec"}),a.fileSymlinkDirectory=new a("file-symlink-directory",{fontCharacter:"\\eaed"}),a.fileSymlinkFile=new a("file-symlink-file",{fontCharacter:"\\eaee"}),a.fileZip=new a("file-zip",{fontCharacter:"\\eaef"}),a.files=new a("files",{fontCharacter:"\\eaf0"}),a.filter=new a("filter",{fontCharacter:"\\eaf1"}),a.flame=new a("flame",{fontCharacter:"\\eaf2"}),a.foldDown=new a("fold-down",{fontCharacter:"\\eaf3"}),a.foldUp=new a("fold-up",{fontCharacter:"\\eaf4"}),a.fold=new a("fold",{fontCharacter:"\\eaf5"}),a.folderActive=new a("folder-active",{fontCharacter:"\\eaf6"}),a.folderOpened=new a("folder-opened",{fontCharacter:"\\eaf7"}),a.gear=new a("gear",{fontCharacter:"\\eaf8"}),a.gift=new a("gift",{fontCharacter:"\\eaf9"}),a.gistSecret=new a("gist-secret",{fontCharacter:"\\eafa"}),a.gist=new a("gist",{fontCharacter:"\\eafb"}),a.gitCommit=new a("git-commit",{fontCharacter:"\\eafc"}),a.gitCompare=new a("git-compare",{fontCharacter:"\\eafd"}),a.gitMerge=new a("git-merge",{fontCharacter:"\\eafe"}),a.githubAction=new a("github-action",{fontCharacter:"\\eaff"}),a.githubAlt=new a("github-alt",{fontCharacter:"\\eb00"}),a.globe=new a("globe",{fontCharacter:"\\eb01"}),a.grabber=new a("grabber",{fontCharacter:"\\eb02"}),a.graph=new a("graph",{fontCharacter:"\\eb03"}),a.gripper=new a("gripper",{fontCharacter:"\\eb04"}),a.heart=new a("heart",{fontCharacter:"\\eb05"}),a.home=new a("home",{fontCharacter:"\\eb06"}),a.horizontalRule=new a("horizontal-rule",{fontCharacter:"\\eb07"}),a.hubot=new a("hubot",{fontCharacter:"\\eb08"}),a.inbox=new a("inbox",{fontCharacter:"\\eb09"}),a.issueClosed=new a("issue-closed",{fontCharacter:"\\eba4"}),a.issueReopened=new a("issue-reopened",{fontCharacter:"\\eb0b"}),a.issues=new a("issues",{fontCharacter:"\\eb0c"}),a.italic=new a("italic",{fontCharacter:"\\eb0d"}),a.jersey=new a("jersey",{fontCharacter:"\\eb0e"}),a.json=new a("json",{fontCharacter:"\\eb0f"}),a.kebabVertical=new a("kebab-vertical",{fontCharacter:"\\eb10"}),a.key=new a("key",{fontCharacter:"\\eb11"}),a.law=new a("law",{fontCharacter:"\\eb12"}),a.lightbulbAutofix=new a("lightbulb-autofix",{fontCharacter:"\\eb13"}),a.linkExternal=new a("link-external",{fontCharacter:"\\eb14"}),a.link=new a("link",{fontCharacter:"\\eb15"}),a.listOrdered=new a("list-ordered",{fontCharacter:"\\eb16"}),a.listUnordered=new a("list-unordered",{fontCharacter:"\\eb17"}),a.liveShare=new a("live-share",{fontCharacter:"\\eb18"}),a.loading=new a("loading",{fontCharacter:"\\eb19"}),a.location=new a("location",{fontCharacter:"\\eb1a"}),a.mailRead=new a("mail-read",{fontCharacter:"\\eb1b"}),a.mail=new a("mail",{fontCharacter:"\\eb1c"}),a.markdown=new a("markdown",{fontCharacter:"\\eb1d"}),a.megaphone=new a("megaphone",{fontCharacter:"\\eb1e"}),a.mention=new a("mention",{fontCharacter:"\\eb1f"}),a.milestone=new a("milestone",{fontCharacter:"\\eb20"}),a.mortarBoard=new a("mortar-board",{fontCharacter:"\\eb21"}),a.move=new a("move",{fontCharacter:"\\eb22"}),a.multipleWindows=new a("multiple-windows",{fontCharacter:"\\eb23"}),a.mute=new a("mute",{fontCharacter:"\\eb24"}),a.noNewline=new a("no-newline",{fontCharacter:"\\eb25"}),a.note=new a("note",{fontCharacter:"\\eb26"}),a.octoface=new a("octoface",{fontCharacter:"\\eb27"}),a.openPreview=new a("open-preview",{fontCharacter:"\\eb28"}),a.package_=new a("package",{fontCharacter:"\\eb29"}),a.paintcan=new a("paintcan",{fontCharacter:"\\eb2a"}),a.pin=new a("pin",{fontCharacter:"\\eb2b"}),a.play=new a("play",{fontCharacter:"\\eb2c"}),a.run=new a("run",{fontCharacter:"\\eb2c"}),a.plug=new a("plug",{fontCharacter:"\\eb2d"}),a.preserveCase=new a("preserve-case",{fontCharacter:"\\eb2e"}),a.preview=new a("preview",{fontCharacter:"\\eb2f"}),a.project=new a("project",{fontCharacter:"\\eb30"}),a.pulse=new a("pulse",{fontCharacter:"\\eb31"}),a.question=new a("question",{fontCharacter:"\\eb32"}),a.quote=new a("quote",{fontCharacter:"\\eb33"}),a.radioTower=new a("radio-tower",{fontCharacter:"\\eb34"}),a.reactions=new a("reactions",{fontCharacter:"\\eb35"}),a.references=new a("references",{fontCharacter:"\\eb36"}),a.refresh=new a("refresh",{fontCharacter:"\\eb37"}),a.regex=new a("regex",{fontCharacter:"\\eb38"}),a.remoteExplorer=new a("remote-explorer",{fontCharacter:"\\eb39"}),a.remote=new a("remote",{fontCharacter:"\\eb3a"}),a.remove=new a("remove",{fontCharacter:"\\eb3b"}),a.replaceAll=new a("replace-all",{fontCharacter:"\\eb3c"}),a.replace=new a("replace",{fontCharacter:"\\eb3d"}),a.repoClone=new a("repo-clone",{fontCharacter:"\\eb3e"}),a.repoForcePush=new a("repo-force-push",{fontCharacter:"\\eb3f"}),a.repoPull=new a("repo-pull",{fontCharacter:"\\eb40"}),a.repoPush=new a("repo-push",{fontCharacter:"\\eb41"}),a.report=new a("report",{fontCharacter:"\\eb42"}),a.requestChanges=new a("request-changes",{fontCharacter:"\\eb43"}),a.rocket=new a("rocket",{fontCharacter:"\\eb44"}),a.rootFolderOpened=new a("root-folder-opened",{fontCharacter:"\\eb45"}),a.rootFolder=new a("root-folder",{fontCharacter:"\\eb46"}),a.rss=new a("rss",{fontCharacter:"\\eb47"}),a.ruby=new a("ruby",{fontCharacter:"\\eb48"}),a.saveAll=new a("save-all",{fontCharacter:"\\eb49"}),a.saveAs=new a("save-as",{fontCharacter:"\\eb4a"}),a.save=new a("save",{fontCharacter:"\\eb4b"}),a.screenFull=new a("screen-full",{fontCharacter:"\\eb4c"}),a.screenNormal=new a("screen-normal",{fontCharacter:"\\eb4d"}),a.searchStop=new a("search-stop",{fontCharacter:"\\eb4e"}),a.server=new a("server",{fontCharacter:"\\eb50"}),a.settingsGear=new a("settings-gear",{fontCharacter:"\\eb51"}),a.settings=new a("settings",{fontCharacter:"\\eb52"}),a.shield=new a("shield",{fontCharacter:"\\eb53"}),a.smiley=new a("smiley",{fontCharacter:"\\eb54"}),a.sortPrecedence=new a("sort-precedence",{fontCharacter:"\\eb55"}),a.splitHorizontal=new a("split-horizontal",{fontCharacter:"\\eb56"}),a.splitVertical=new a("split-vertical",{fontCharacter:"\\eb57"}),a.squirrel=new a("squirrel",{fontCharacter:"\\eb58"}),a.starFull=new a("star-full",{fontCharacter:"\\eb59"}),a.starHalf=new a("star-half",{fontCharacter:"\\eb5a"}),a.symbolClass=new a("symbol-class",{fontCharacter:"\\eb5b"}),a.symbolColor=new a("symbol-color",{fontCharacter:"\\eb5c"}),a.symbolConstant=new a("symbol-constant",{fontCharacter:"\\eb5d"}),a.symbolEnumMember=new a("symbol-enum-member",{fontCharacter:"\\eb5e"}),a.symbolField=new a("symbol-field",{fontCharacter:"\\eb5f"}),a.symbolFile=new a("symbol-file",{fontCharacter:"\\eb60"}),a.symbolInterface=new a("symbol-interface",{fontCharacter:"\\eb61"}),a.symbolKeyword=new a("symbol-keyword",{fontCharacter:"\\eb62"}),a.symbolMisc=new a("symbol-misc",{fontCharacter:"\\eb63"}),a.symbolOperator=new a("symbol-operator",{fontCharacter:"\\eb64"}),a.symbolProperty=new a("symbol-property",{fontCharacter:"\\eb65"}),a.wrench=new a("wrench",{fontCharacter:"\\eb65"}),a.wrenchSubaction=new a("wrench-subaction",{fontCharacter:"\\eb65"}),a.symbolSnippet=new a("symbol-snippet",{fontCharacter:"\\eb66"}),a.tasklist=new a("tasklist",{fontCharacter:"\\eb67"}),a.telescope=new a("telescope",{fontCharacter:"\\eb68"}),a.textSize=new a("text-size",{fontCharacter:"\\eb69"}),a.threeBars=new a("three-bars",{fontCharacter:"\\eb6a"}),a.thumbsdown=new a("thumbsdown",{fontCharacter:"\\eb6b"}),a.thumbsup=new a("thumbsup",{fontCharacter:"\\eb6c"}),a.tools=new a("tools",{fontCharacter:"\\eb6d"}),a.triangleDown=new a("triangle-down",{fontCharacter:"\\eb6e"}),a.triangleLeft=new a("triangle-left",{fontCharacter:"\\eb6f"}),a.triangleRight=new a("triangle-right",{fontCharacter:"\\eb70"}),a.triangleUp=new a("triangle-up",{fontCharacter:"\\eb71"}),a.twitter=new a("twitter",{fontCharacter:"\\eb72"}),a.unfold=new a("unfold",{fontCharacter:"\\eb73"}),a.unlock=new a("unlock",{fontCharacter:"\\eb74"}),a.unmute=new a("unmute",{fontCharacter:"\\eb75"}),a.unverified=new a("unverified",{fontCharacter:"\\eb76"}),a.verified=new a("verified",{fontCharacter:"\\eb77"}),a.versions=new a("versions",{fontCharacter:"\\eb78"}),a.vmActive=new a("vm-active",{fontCharacter:"\\eb79"}),a.vmOutline=new a("vm-outline",{fontCharacter:"\\eb7a"}),a.vmRunning=new a("vm-running",{fontCharacter:"\\eb7b"}),a.watch=new a("watch",{fontCharacter:"\\eb7c"}),a.whitespace=new a("whitespace",{fontCharacter:"\\eb7d"}),a.wholeWord=new a("whole-word",{fontCharacter:"\\eb7e"}),a.window=new a("window",{fontCharacter:"\\eb7f"}),a.wordWrap=new a("word-wrap",{fontCharacter:"\\eb80"}),a.zoomIn=new a("zoom-in",{fontCharacter:"\\eb81"}),a.zoomOut=new a("zoom-out",{fontCharacter:"\\eb82"}),a.listFilter=new a("list-filter",{fontCharacter:"\\eb83"}),a.listFlat=new a("list-flat",{fontCharacter:"\\eb84"}),a.listSelection=new a("list-selection",{fontCharacter:"\\eb85"}),a.selection=new a("selection",{fontCharacter:"\\eb85"}),a.listTree=new a("list-tree",{fontCharacter:"\\eb86"}),a.debugBreakpointFunctionUnverified=new a("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),a.debugBreakpointFunction=new a("debug-breakpoint-function",{fontCharacter:"\\eb88"}),a.debugBreakpointFunctionDisabled=new a("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),a.debugStackframeActive=new a("debug-stackframe-active",{fontCharacter:"\\eb89"}),a.debugStackframeDot=new a("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),a.debugStackframe=new a("debug-stackframe",{fontCharacter:"\\eb8b"}),a.debugStackframeFocused=new a("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),a.debugBreakpointUnsupported=new a("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),a.symbolString=new a("symbol-string",{fontCharacter:"\\eb8d"}),a.debugReverseContinue=new a("debug-reverse-continue",{fontCharacter:"\\eb8e"}),a.debugStepBack=new a("debug-step-back",{fontCharacter:"\\eb8f"}),a.debugRestartFrame=new a("debug-restart-frame",{fontCharacter:"\\eb90"}),a.callIncoming=new a("call-incoming",{fontCharacter:"\\eb92"}),a.callOutgoing=new a("call-outgoing",{fontCharacter:"\\eb93"}),a.menu=new a("menu",{fontCharacter:"\\eb94"}),a.expandAll=new a("expand-all",{fontCharacter:"\\eb95"}),a.feedback=new a("feedback",{fontCharacter:"\\eb96"}),a.groupByRefType=new a("group-by-ref-type",{fontCharacter:"\\eb97"}),a.ungroupByRefType=new a("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),a.account=new a("account",{fontCharacter:"\\eb99"}),a.bellDot=new a("bell-dot",{fontCharacter:"\\eb9a"}),a.debugConsole=new a("debug-console",{fontCharacter:"\\eb9b"}),a.library=new a("library",{fontCharacter:"\\eb9c"}),a.output=new a("output",{fontCharacter:"\\eb9d"}),a.runAll=new a("run-all",{fontCharacter:"\\eb9e"}),a.syncIgnored=new a("sync-ignored",{fontCharacter:"\\eb9f"}),a.pinned=new a("pinned",{fontCharacter:"\\eba0"}),a.githubInverted=new a("github-inverted",{fontCharacter:"\\eba1"}),a.debugAlt=new a("debug-alt",{fontCharacter:"\\eb91"}),a.serverProcess=new a("server-process",{fontCharacter:"\\eba2"}),a.serverEnvironment=new a("server-environment",{fontCharacter:"\\eba3"}),a.pass=new a("pass",{fontCharacter:"\\eba4"}),a.stopCircle=new a("stop-circle",{fontCharacter:"\\eba5"}),a.playCircle=new a("play-circle",{fontCharacter:"\\eba6"}),a.record=new a("record",{fontCharacter:"\\eba7"}),a.debugAltSmall=new a("debug-alt-small",{fontCharacter:"\\eba8"}),a.vmConnect=new a("vm-connect",{fontCharacter:"\\eba9"}),a.cloud=new a("cloud",{fontCharacter:"\\ebaa"}),a.merge=new a("merge",{fontCharacter:"\\ebab"}),a.exportIcon=new a("export",{fontCharacter:"\\ebac"}),a.graphLeft=new a("graph-left",{fontCharacter:"\\ebad"}),a.magnet=new a("magnet",{fontCharacter:"\\ebae"}),a.notebook=new a("notebook",{fontCharacter:"\\ebaf"}),a.redo=new a("redo",{fontCharacter:"\\ebb0"}),a.checkAll=new a("check-all",{fontCharacter:"\\ebb1"}),a.pinnedDirty=new a("pinned-dirty",{fontCharacter:"\\ebb2"}),a.passFilled=new a("pass-filled",{fontCharacter:"\\ebb3"}),a.circleLargeFilled=new a("circle-large-filled",{fontCharacter:"\\ebb4"}),a.circleLargeOutline=new a("circle-large-outline",{fontCharacter:"\\ebb5"}),a.combine=new a("combine",{fontCharacter:"\\ebb6"}),a.gather=new a("gather",{fontCharacter:"\\ebb6"}),a.table=new a("table",{fontCharacter:"\\ebb7"}),a.variableGroup=new a("variable-group",{fontCharacter:"\\ebb8"}),a.typeHierarchy=new a("type-hierarchy",{fontCharacter:"\\ebb9"}),a.typeHierarchySub=new a("type-hierarchy-sub",{fontCharacter:"\\ebba"}),a.typeHierarchySuper=new a("type-hierarchy-super",{fontCharacter:"\\ebbb"}),a.gitPullRequestCreate=new a("git-pull-request-create",{fontCharacter:"\\ebbc"}),a.runAbove=new a("run-above",{fontCharacter:"\\ebbd"}),a.runBelow=new a("run-below",{fontCharacter:"\\ebbe"}),a.notebookTemplate=new a("notebook-template",{fontCharacter:"\\ebbf"}),a.debugRerun=new a("debug-rerun",{fontCharacter:"\\ebc0"}),a.workspaceTrusted=new a("workspace-trusted",{fontCharacter:"\\ebc1"}),a.workspaceUntrusted=new a("workspace-untrusted",{fontCharacter:"\\ebc2"}),a.workspaceUnspecified=new a("workspace-unspecified",{fontCharacter:"\\ebc3"}),a.terminalCmd=new a("terminal-cmd",{fontCharacter:"\\ebc4"}),a.terminalDebian=new a("terminal-debian",{fontCharacter:"\\ebc5"}),a.terminalLinux=new a("terminal-linux",{fontCharacter:"\\ebc6"}),a.terminalPowershell=new a("terminal-powershell",{fontCharacter:"\\ebc7"}),a.terminalTmux=new a("terminal-tmux",{fontCharacter:"\\ebc8"}),a.terminalUbuntu=new a("terminal-ubuntu",{fontCharacter:"\\ebc9"}),a.terminalBash=new a("terminal-bash",{fontCharacter:"\\ebca"}),a.arrowSwap=new a("arrow-swap",{fontCharacter:"\\ebcb"}),a.copy=new a("copy",{fontCharacter:"\\ebcc"}),a.personAdd=new a("person-add",{fontCharacter:"\\ebcd"}),a.filterFilled=new a("filter-filled",{fontCharacter:"\\ebce"}),a.wand=new a("wand",{fontCharacter:"\\ebcf"}),a.debugLineByLine=new a("debug-line-by-line",{fontCharacter:"\\ebd0"}),a.inspect=new a("inspect",{fontCharacter:"\\ebd1"}),a.layers=new a("layers",{fontCharacter:"\\ebd2"}),a.layersDot=new a("layers-dot",{fontCharacter:"\\ebd3"}),a.layersActive=new a("layers-active",{fontCharacter:"\\ebd4"}),a.compass=new a("compass",{fontCharacter:"\\ebd5"}),a.compassDot=new a("compass-dot",{fontCharacter:"\\ebd6"}),a.compassActive=new a("compass-active",{fontCharacter:"\\ebd7"}),a.azure=new a("azure",{fontCharacter:"\\ebd8"}),a.issueDraft=new a("issue-draft",{fontCharacter:"\\ebd9"}),a.gitPullRequestClosed=new a("git-pull-request-closed",{fontCharacter:"\\ebda"}),a.gitPullRequestDraft=new a("git-pull-request-draft",{fontCharacter:"\\ebdb"}),a.debugAll=new a("debug-all",{fontCharacter:"\\ebdc"}),a.debugCoverage=new a("debug-coverage",{fontCharacter:"\\ebdd"}),a.runErrors=new a("run-errors",{fontCharacter:"\\ebde"}),a.folderLibrary=new a("folder-library",{fontCharacter:"\\ebdf"}),a.debugContinueSmall=new a("debug-continue-small",{fontCharacter:"\\ebe0"}),a.beakerStop=new a("beaker-stop",{fontCharacter:"\\ebe1"}),a.graphLine=new a("graph-line",{fontCharacter:"\\ebe2"}),a.graphScatter=new a("graph-scatter",{fontCharacter:"\\ebe3"}),a.pieChart=new a("pie-chart",{fontCharacter:"\\ebe4"}),a.bracket=new a("bracket",a.json.definition),a.bracketDot=new a("bracket-dot",{fontCharacter:"\\ebe5"}),a.bracketError=new a("bracket-error",{fontCharacter:"\\ebe6"}),a.lockSmall=new a("lock-small",{fontCharacter:"\\ebe7"}),a.azureDevops=new a("azure-devops",{fontCharacter:"\\ebe8"}),a.verifiedFilled=new a("verified-filled",{fontCharacter:"\\ebe9"})}(ue||(ue={}))},"VrN/":function(De,L,s){(function(re,ie){De.exports=ie()})(this,function(){"use strict";var re=navigator.userAgent,ie=navigator.platform,Ie=/gecko\/\d/i.test(re),ae=/MSIE \d/.test(re),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(re),R=/Edge\/(\d+)/.exec(re),ue=ae||y||R,se=ue&&(ae?document.documentMode||6:+(R||y)[1]),a=!R&&/WebKit\//.test(re),N=a&&/Qt\/\d+\.\d+/.test(re),I=!R&&/Chrome\//.test(re),E=/Opera\//.test(re),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(re),h=/PhantomJS/.test(re),p=!R&&/AppleWebKit/.test(re)&&/Mobile\/\w+/.test(re),T=/Android/.test(re),W=p||T||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(re),_=p||/Mac/.test(ie),g=/\bCrOS\b/.test(re),j=/win/i.test(ie),Q=E&&re.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(E=!1,a=!0);var J=_&&(N||E&&(Q==null||Q<12.11)),P=Ie||ue&&se>=9;function te(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var H=function(e,t){var i=e.className,n=te(t).exec(i);if(n){var r=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(r?n[1]+r:"")}};function le(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function ye(e,t){return le(e).appendChild(t)}function ge(e,t,i,n){var r=document.createElement(e);if(i&&(r.className=i),n&&(r.style.cssText=n),typeof t=="string")r.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)r.appendChild(t[o]);return r}function z(e,t,i,n){var r=ge(e,t,i,n);return r.setAttribute("role","presentation"),r}var F;document.createRange?F=function(e,t,i,n){var r=document.createRange();return r.setEnd(n||e,i),r.setStart(e,t),r}:F=function(e,t,i){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(r){return n}return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",t),n};function K(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function xe(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function M(e,t){var i=e.className;te(t).test(i)||(e.className+=(i?" ":"")+t)}function u(e,t){for(var i=e.split(" "),n=0;n<i.length;n++)i[n]&&!te(i[n]).test(t)&&(t+=" "+i[n]);return t}var v=function(e){e.select()};p?v=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ue&&(v=function(e){try{e.select()}catch(t){}});function A(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function l(e,t,i){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(i!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function C(e,t,i,n,r){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=n||0,c=r||0;;){var m=e.indexOf(" ",o);if(m<0||m>=t)return c+(t-o);c+=m-o,c+=i-c%i,o=m+1}}var D=function(){this.id=null,this.f=null,this.time=0,this.handler=A(this.onTimeout,this)};D.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},D.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function he(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var _e=50,Ae={toString:function(){return"CodeMirror.Pass"}},be={scroll:!1},G={origin:"*mouse"},$={origin:"+move"};function me(e,t,i){for(var n=0,r=0;;){var o=e.indexOf(" ",n);o==-1&&(o=e.length);var c=o-n;if(o==e.length||r+c>=t)return n+Math.min(c,t-r);if(r+=o-n,r+=i-r%i,n=o+1,r>=t)return n}}var q=[""];function Oe(e){for(;q.length<=e;)q.push(S(q)+" ");return q[e]}function S(e){return e[e.length-1]}function Y(e,t){for(var i=[],n=0;n<e.length;n++)i[n]=t(e[n],n);return i}function k(e,t,i){for(var n=0,r=i(t);n<e.length&&i(e[n])<=r;)n++;e.splice(n,0,t)}function pe(){}function Me(e,t){var i;return Object.create?i=Object.create(e):(pe.prototype=e,i=new pe),t&&l(t,i),i}var ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ce(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ce.test(e))}function Fe(e,t){return t?t.source.indexOf("\\w")>-1&&Ce(e)?!0:t.test(e):Ce(e)}function U(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var we=/[\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 Ne(e){return e.charCodeAt(0)>=768&&we.test(e)}function ke(e,t,i){for(;(i<0?t>0:t<e.length)&&Ne(e.charAt(t));)t+=i;return t}function $e(e,t,i){for(var n=t>i?-1:1;;){if(t==i)return t;var r=(t+i)/2,o=n<0?Math.ceil(r):Math.floor(r);if(o==t)return e(o)?t:i;e(o)?i=o:t=o+n}}function Xe(e,t,i,n){if(!e)return n(t,i,"ltr",0);for(var r=!1,o=0;o<e.length;++o){var c=e[o];(c.from<i&&c.to>t||t==i&&c.to==t)&&(n(Math.max(c.from,t),Math.min(c.to,i),c.level==1?"rtl":"ltr",o),r=!0)}r||n(t,i,"ltr")}var st=null;function Ze(e,t,i){var n;st=null;for(var r=0;r<e.length;++r){var o=e[r];if(o.from<t&&o.to>t)return r;o.to==t&&(o.from!=o.to&&i=="before"?n=r:st=r),o.from==t&&(o.from!=o.to&&i!="before"?n=r:st=r)}return n!=null?n:st}var yt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(w){return w<=247?e.charAt(w):1424<=w&&w<=1524?"R":1536<=w&&w<=1785?t.charAt(w-1536):1774<=w&&w<=2220?"r":8192<=w&&w<=8203?"w":w==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,r=/[stwN]/,o=/[LRr]/,c=/[Lb1n]/,m=/[1n]/;function b(w,Z,oe){this.level=w,this.from=Z,this.to=oe}return function(w,Z){var oe=Z=="ltr"?"L":"R";if(w.length==0||Z=="ltr"&&!n.test(w))return!1;for(var Re=w.length,Te=[],Pe=0;Pe<Re;++Pe)Te.push(i(w.charCodeAt(Pe)));for(var Ue=0,Qe=oe;Ue<Re;++Ue){var nt=Te[Ue];nt=="m"?Te[Ue]=Qe:Qe=nt}for(var ot=0,it=oe;ot<Re;++ot){var dt=Te[ot];dt=="1"&&it=="r"?Te[ot]="n":o.test(dt)&&(it=dt,dt=="r"&&(Te[ot]="R"))}for(var St=1,vt=Te[0];St<Re-1;++St){var Xt=Te[St];Xt=="+"&&vt=="1"&&Te[St+1]=="1"?Te[St]="1":Xt==","&&vt==Te[St+1]&&(vt=="1"||vt=="n")&&(Te[St]=vt),vt=Xt}for(var Wn=0;Wn<Re;++Wn){var Ii=Te[Wn];if(Ii==",")Te[Wn]="N";else if(Ii=="%"){var ni=void 0;for(ni=Wn+1;ni<Re&&Te[ni]=="%";++ni);for(var or=Wn&&Te[Wn-1]=="!"||ni<Re&&Te[ni]=="1"?"1":"N",er=Wn;er<ni;++er)Te[er]=or;Wn=ni-1}}for(var gi=0,tr=oe;gi<Re;++gi){var ki=Te[gi];tr=="L"&&ki=="1"?Te[gi]="L":o.test(ki)&&(tr=ki)}for(var wi=0;wi<Re;++wi)if(r.test(Te[wi])){var vi=void 0;for(vi=wi+1;vi<Re&&r.test(Te[vi]);++vi);for(var ai=(wi?Te[wi-1]:oe)=="L",nr=(vi<Re?Te[vi]:oe)=="L",Ga=ai==nr?ai?"L":"R":oe,oa=wi;oa<vi;++oa)Te[oa]=Ga;wi=vi-1}for(var Fi=[],Pr,Ni=0;Ni<Re;)if(c.test(Te[Ni])){var ps=Ni;for(++Ni;Ni<Re&&c.test(Te[Ni]);++Ni);Fi.push(new b(0,ps,Ni))}else{var Yr=Ni,va=Fi.length,ba=Z=="rtl"?1:0;for(++Ni;Ni<Re&&Te[Ni]!="L";++Ni);for(var Qi=Yr;Qi<Ni;)if(m.test(Te[Qi])){Yr<Qi&&(Fi.splice(va,0,new b(1,Yr,Qi)),va+=ba);var Qa=Qi;for(++Qi;Qi<Ni&&m.test(Te[Qi]);++Qi);Fi.splice(va,0,new b(2,Qa,Qi)),va+=ba,Yr=Qi}else++Qi;Yr<Ni&&Fi.splice(va,0,new b(1,Yr,Ni))}return Z=="ltr"&&(Fi[0].level==1&&(Pr=w.match(/^\s+/))&&(Fi[0].from=Pr[0].length,Fi.unshift(new b(0,0,Pr[0].length))),S(Fi).level==1&&(Pr=w.match(/\s+$/))&&(S(Fi).to-=Pr[0].length,Fi.push(new b(0,Re-Pr[0].length,Re)))),Z=="rtl"?Fi.reverse():Fi}}();function At(e,t){var i=e.order;return i==null&&(i=e.order=yt(e.text,t)),i}var Lt=[],qe=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||Lt).concat(i)}};function Xn(e,t){return e._handlers&&e._handlers[t]||Lt}function xn(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var n=e._handlers,r=n&&n[t];if(r){var o=he(r,i);o>-1&&(n[t]=r.slice(0,o).concat(r.slice(o+1)))}}}function Bt(e,t){var i=Xn(e,t);if(!i.length)return;for(var n=Array.prototype.slice.call(arguments,2),r=0;r<i.length;++r)i[r].apply(null,n)}function ut(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Bt(e,i||t.type,e,t),oi(t)||t.codemirrorIgnore}function Wt(e){var t=e._handlers&&e._handlers.cursorActivity;if(!t)return;for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)he(i,t[n])==-1&&i.push(t[n])}function It(e,t){return Xn(e,t).length>0}function pn(e){e.prototype.on=function(t,i){qe(this,t,i)},e.prototype.off=function(t,i){xn(this,t,i)}}function en(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Rn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function oi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function On(e){en(e),Rn(e)}function si(e){return e.target||e.srcElement}function Ti(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),_&&e.ctrlKey&&t==1&&(t=3),t}var li=function(){if(ue&&se<9)return!1;var e=ge("div");return"draggable"in e||"dragDrop"in e}(),ir;function rr(e){if(ir==null){var t=ge("span","\u200B");ye(e,ge("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(ir=t.offsetWidth<=1&&t.offsetHeight>2&&!(ue&&se<8))}var i=ir?ge("span","\u200B"):ge("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Yi;function Pi(e){if(Yi!=null)return Yi;var t=ye(e,document.createTextNode("A\u062EA")),i=F(t,0,1).getBoundingClientRect(),n=F(t,1,2).getBoundingClientRect();return le(e),!i||i.left==i.right?!1:Yi=n.right-i.right<3}var Si=`
|
|
|
|
b`.split(/\n/).length!=3?function(e){for(var t=0,i=[],n=e.length;t<=n;){var r=e.indexOf(`
|
|
`,t);r==-1&&(r=e.length);var o=e.slice(t,e.charAt(r-1)=="\r"?r-1:r),c=o.indexOf("\r");c!=-1?(i.push(o.slice(0,c)),t+=c+1):(i.push(o),t=r+1)}return i}:function(e){return e.split(/\r\n?|\n/)},hi=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(i){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},mr=function(){var e=ge("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ht=null;function We(e){if(ht!=null)return ht;var t=ye(e,ge("span","x")),i=t.getBoundingClientRect(),n=F(t,0,1).getBoundingClientRect();return ht=Math.abs(i.left-n.left)>1}var pt={},Dt={};function Ht(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),pt[e]=t}function Ut(e,t){Dt[e]=t}function In(e){if(typeof e=="string"&&Dt.hasOwnProperty(e))e=Dt[e];else if(e&&typeof e.name=="string"&&Dt.hasOwnProperty(e.name)){var t=Dt[e.name];typeof t=="string"&&(t={name:t}),e=Me(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return In("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return In("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ln(e,t){t=In(t);var i=pt[t.name];if(!i)return ln(e,"text/plain");var n=i(e,t);if(rt.hasOwnProperty(t.name)){var r=rt[t.name];for(var o in r){if(!r.hasOwnProperty(o))continue;n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=r[o]}}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var c in t.modeProps)n[c]=t.modeProps[c];return n}var rt={};function Ve(e,t){var i=rt.hasOwnProperty(e)?rt[e]:rt[e]={};l(t,i)}function at(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var r=t[n];r instanceof Array&&(r=r.concat([])),i[n]=r}return i}function Ye(e,t){for(var i;e.innerMode&&!(i=e.innerMode(t),!i||i.mode==e);)t=i.state,e=i.mode;return i||{mode:e,state:t}}function Ct(e,t,i){return e.startState?e.startState(t,i):!0}var Ge=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};Ge.prototype.eol=function(){return this.pos>=this.string.length},Ge.prototype.sol=function(){return this.pos==this.lineStart},Ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ge.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ge.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},Ge.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ge.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ge.prototype.skipToEnd=function(){this.pos=this.string.length},Ge.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ge.prototype.backUp=function(e){this.pos-=e},Ge.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=C(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?C(this.string,this.lineStart,this.tabSize):0)},Ge.prototype.indentation=function(){return C(this.string,null,this.tabSize)-(this.lineStart?C(this.string,this.lineStart,this.tabSize):0)},Ge.prototype.match=function(e,t,i){if(typeof e=="string"){var n=function(c){return i?c.toLowerCase():c},r=this.string.substr(this.pos,e.length);if(n(r)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},Ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ge.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ge.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ge.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function ze(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 i=e;!i.lines;)for(var n=0;;++n){var r=i.children[n],o=r.chunkSize();if(t<o){i=r;break}t-=o}return i.lines[t]}function Zt(e,t,i){var n=[],r=t.line;return e.iter(t.line,i.line+1,function(o){var c=o.text;r==i.line&&(c=c.slice(0,i.ch)),r==t.line&&(c=c.slice(t.ch)),n.push(c),++r}),n}function Ot(e,t,i){var n=[];return e.iter(t,i,function(r){n.push(r.text)}),n}function kt(e,t){var i=t-e.height;if(i)for(var n=e;n;n=n.parent)n.height+=i}function Nt(e){if(e.parent==null)return null;for(var t=e.parent,i=he(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var r=0;!(n.children[r]==t);++r)i+=n.children[r].chunkSize();return i+t.first}function Kt(e,t){var i=e.first;e:do{for(var n=0;n<e.children.length;++n){var r=e.children[n],o=r.height;if(t<o){e=r;continue e}t-=o,i+=r.chunkSize()}return i}while(!e.lines);for(var c=0;c<e.lines.length;++c){var m=e.lines[c],b=m.height;if(t<b)break;t-=b}return i+c}function un(e,t){return t>=e.first&&t<e.first+e.size}function Hn(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function je(e,t,i){if(i===void 0&&(i=null),!(this instanceof je))return new je(e,t,i);this.line=e,this.ch=t,this.sticky=i}function lt(e,t){return e.line-t.line||e.ch-t.ch}function Un(e,t){return e.sticky==t.sticky&<(e,t)==0}function bi(e){return je(e.line,e.ch)}function wn(e,t){return lt(e,t)<0?t:e}function xt(e,t){return lt(e,t)<0?e:t}function Rt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function et(e,t){if(t.line<e.first)return je(e.first,0);var i=e.first+e.size-1;return t.line>i?je(i,ze(e,i).text.length):Pt(t,ze(e,t.line).text.length)}function Pt(e,t){var i=e.ch;return i==null||i>t?je(e.line,t):i<0?je(e.line,0):e}function bt(e,t){for(var i=[],n=0;n<t.length;n++)i[n]=et(e,t[n]);return i}var mt=function(e,t){this.state=e,this.lookAhead=t},Mt=function(e,t,i,n){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};Mt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},Mt.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}},Mt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Mt.fromSaved=function(e,t,i){return t instanceof mt?new Mt(e,at(e.mode,t.state),i,t.lookAhead):new Mt(e,at(e.mode,t),i)},Mt.prototype.save=function(e){var t=e!==!1?at(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new mt(t,this.maxLookAhead):t};function Gn(e,t,i,n){var r=[e.state.modeGen],o={};cn(e,t.text,e.doc.mode,i,function(w,Z){return r.push(w,Z)},o,n);for(var c=i.state,m=function(w){i.baseTokens=r;var Z=e.state.overlays[w],oe=1,Re=0;i.state=!0,cn(e,t.text,Z.mode,i,function(Te,Pe){for(var Ue=oe;Re<Te;){var Qe=r[oe];Qe>Te&&r.splice(oe,1,Te,r[oe+1],Qe),oe+=2,Re=Math.min(Te,Qe)}if(!Pe)return;if(Z.opaque)r.splice(Ue,oe-Ue,Te,"overlay "+Pe),oe=Ue+2;else for(;Ue<oe;Ue+=2){var nt=r[Ue+1];r[Ue+1]=(nt?nt+" ":"")+"overlay "+Pe}},o),i.state=c,i.baseTokens=null,i.baseTokenPos=1},b=0;b<e.state.overlays.length;++b)m(b);return{styles:r,classes:o.bgClass||o.textClass?o:null}}function yn(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=Jt(e,Nt(t)),r=t.text.length>e.options.maxHighlightLength&&at(e.doc.mode,n.state),o=Gn(e,t,n);r&&(n.state=r),t.stateAfter=n.save(!r),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Jt(e,t,i){var n=e.doc,r=e.display;if(!n.mode.startState)return new Mt(n,!0,t);var o=fn(e,t,i),c=o>n.first&&ze(n,o-1).stateAfter,m=c?Mt.fromSaved(n,c,o):new Mt(n,Ct(n.mode),o);return n.iter(o,t,function(b){rn(e,b.text,m);var w=m.line;b.stateAfter=w==t-1||w%5==0||w>=r.viewFrom&&w<r.viewTo?m.save():null,m.nextLine()}),i&&(n.modeFrontier=m.line),m}function rn(e,t,i,n){var r=e.doc.mode,o=new Ge(t,e.options.tabSize,i);for(o.start=o.pos=n||0,t==""&&fi(r,i.state);!o.eol();)Kn(r,o,i.state),o.start=o.pos}function fi(e,t){if(e.blankLine)return e.blankLine(t);if(!e.innerMode)return;var i=Ye(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}function Kn(e,t,i,n){for(var r=0;r<10;r++){n&&(n[0]=Ye(e,i).mode);var o=e.token(t,i);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var ti=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function Fn(e,t,i,n){var r=e.doc,o=r.mode,c;t=et(r,t);var m=ze(r,t.line),b=Jt(e,t.line,i),w=new Ge(m.text,e.options.tabSize,b),Z;for(n&&(Z=[]);(n||w.pos<t.ch)&&!w.eol();)w.start=w.pos,c=Kn(o,w,b.state),n&&Z.push(new ti(w,c,at(r.mode,b.state)));return n?Z:new ti(w,c,b.state)}function hn(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var n=i[1]?"bgClass":"textClass";t[n]==null?t[n]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+i[2])}return e}function cn(e,t,i,n,r,o,c){var m=i.flattenSpans;m==null&&(m=e.options.flattenSpans);var b=0,w=null,Z=new Ge(t,e.options.tabSize,n),oe,Re=e.options.addModeClass&&[null];for(t==""&&hn(fi(i,n.state),o);!Z.eol();){if(Z.pos>e.options.maxHighlightLength?(m=!1,c&&rn(e,t,n,Z.pos),Z.pos=t.length,oe=null):oe=hn(Kn(i,Z,n.state,Re),o),Re){var Te=Re[0].name;Te&&(oe="m-"+(oe?Te+" "+oe:Te))}if(!m||w!=oe){for(;b<Z.start;)b=Math.min(Z.start,b+5e3),r(b,w);w=oe}Z.start=Z.pos}for(;b<Z.pos;){var Pe=Math.min(Z.pos,b+5e3);r(Pe,w),b=Pe}}function fn(e,t,i){for(var n,r,o=e.doc,c=i?-1:t-(e.doc.mode.innerMode?1e3:100),m=t;m>c;--m){if(m<=o.first)return o.first;var b=ze(o,m-1),w=b.stateAfter;if(w&&(!i||m+(w instanceof mt?w.lookAhead:0)<=o.modeFrontier))return m;var Z=C(b.text,null,e.options.tabSize);(r==null||n>Z)&&(r=m-1,n=Z)}return r}function tn(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontier<t-10)return;for(var i=e.first,n=t-1;n>i;n--){var r=ze(e,n).stateAfter;if(r&&(!(r instanceof mt)||n+r.lookAhead<t)){i=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}var Ci=!1,kn=!1;function Qn(){Ci=!0}function sr(){kn=!0}function pi(e,t,i){this.marker=e,this.from=t,this.to=i}function lr(e,t){if(e)for(var i=0;i<e.length;++i){var n=e[i];if(n.marker==t)return n}}function jr(e,t){for(var i,n=0;n<e.length;++n)e[n]!=t&&(i||(i=[])).push(e[n]);return i}function _a(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Vr(e,t,i){var n;if(e)for(var r=0;r<e.length;++r){var o=e[r],c=o.marker,m=o.from==null||(c.inclusiveLeft?o.from<=t:o.from<t);if(m||o.from==t&&c.type=="bookmark"&&(!i||!o.marker.insertLeft)){var b=o.to==null||(c.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new pi(c,o.from,b?null:o.to))}}return n}function sa(e,t,i){var n;if(e)for(var r=0;r<e.length;++r){var o=e[r],c=o.marker,m=o.to==null||(c.inclusiveRight?o.to>=t:o.to>t);if(m||o.from==t&&c.type=="bookmark"&&(!i||o.marker.insertLeft)){var b=o.from==null||(c.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new pi(c,b?null:o.from-t,o.to==null?null:o.to-t))}}return n}function Ur(e,t){if(t.full)return null;var i=un(e,t.from.line)&&ze(e,t.from.line).markedSpans,n=un(e,t.to.line)&&ze(e,t.to.line).markedSpans;if(!i&&!n)return null;var r=t.from.ch,o=t.to.ch,c=lt(t.from,t.to)==0,m=Vr(i,r,c),b=sa(n,o,c),w=t.text.length==1,Z=S(t.text).length+(w?r:0);if(m)for(var oe=0;oe<m.length;++oe){var Re=m[oe];if(Re.to==null){var Te=lr(b,Re.marker);Te?w&&(Re.to=Te.to==null?null:Te.to+Z):Re.to=r}}if(b)for(var Pe=0;Pe<b.length;++Pe){var Ue=b[Pe];if(Ue.to!=null&&(Ue.to+=Z),Ue.from==null){var Qe=lr(m,Ue.marker);Qe||(Ue.from=Z,w&&(m||(m=[])).push(Ue))}else Ue.from+=Z,w&&(m||(m=[])).push(Ue)}m&&(m=Vi(m)),b&&b!=m&&(b=Vi(b));var nt=[m];if(!w){var ot=t.text.length-2,it;if(ot>0&&m)for(var dt=0;dt<m.length;++dt)m[dt].to==null&&(it||(it=[])).push(new pi(m[dt].marker,null,null));for(var St=0;St<ot;++St)nt.push(it);nt.push(b)}return nt}function Vi(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function En(e,t,i){var n=null;if(e.iter(t.line,i.line+1,function(Te){if(Te.markedSpans)for(var Pe=0;Pe<Te.markedSpans.length;++Pe){var Ue=Te.markedSpans[Pe].marker;Ue.readOnly&&(!n||he(n,Ue)==-1)&&(n||(n=[])).push(Ue)}}),!n)return null;for(var r=[{from:t,to:i}],o=0;o<n.length;++o)for(var c=n[o],m=c.find(0),b=0;b<r.length;++b){var w=r[b];if(lt(w.to,m.from)<0||lt(w.from,m.to)>0)continue;var Z=[b,1],oe=lt(w.from,m.from),Re=lt(w.to,m.to);(oe<0||!c.inclusiveLeft&&!oe)&&Z.push({from:w.from,to:m.from}),(Re>0||!c.inclusiveRight&&!Re)&&Z.push({from:m.to,to:w.to}),r.splice.apply(r,Z),b+=Z.length-3}return r}function vn(e){var t=e.markedSpans;if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}function Zn(e,t){if(!t)return;for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}function Di(e){return e.inclusiveLeft?-1:0}function ur(e){return e.inclusiveRight?1:0}function xi(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var n=e.find(),r=t.find(),o=lt(n.from,r.from)||Di(e)-Di(t);if(o)return-o;var c=lt(n.to,r.to)||ur(e)-ur(t);return c||t.id-e.id}function Bi(e,t){var i=kn&&e.markedSpans,n;if(i)for(var r=void 0,o=0;o<i.length;++o)r=i[o],r.marker.collapsed&&(t?r.from:r.to)==null&&(!n||xi(n,r.marker)<0)&&(n=r.marker);return n}function Ji(e){return Bi(e,!0)}function Pn(e){return Bi(e,!1)}function Wi(e,t){var i=kn&&e.markedSpans,n;if(i)for(var r=0;r<i.length;++r){var o=i[r];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!n||xi(n,o.marker)<0)&&(n=o.marker)}return n}function yr(e,t,i,n,r){var o=ze(e,t),c=kn&&o.markedSpans;if(c)for(var m=0;m<c.length;++m){var b=c[m];if(!b.marker.collapsed)continue;var w=b.marker.find(0),Z=lt(w.from,i)||Di(b.marker)-Di(r),oe=lt(w.to,n)||ur(b.marker)-ur(r);if(Z>=0&&oe<=0||Z<=0&&oe>=0)continue;if(Z<=0&&(b.marker.inclusiveRight&&r.inclusiveLeft?lt(w.to,i)>=0:lt(w.to,i)>0)||Z>=0&&(b.marker.inclusiveRight&&r.inclusiveLeft?lt(w.from,n)<=0:lt(w.from,n)<0))return!0}}function Mi(e){for(var t;t=Ji(e);)e=t.find(-1,!0).line;return e}function ya(e){for(var t;t=Pn(e);)e=t.find(1,!0).line;return e}function gr(e){for(var t,i;t=Pn(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function vr(e,t){var i=ze(e,t),n=Mi(i);return i==n?t:Nt(n)}function Sr(e,t){if(t>e.lastLine())return t;var i=ze(e,t),n;if(!Xi(e,i))return t;for(;n=Pn(i);)i=n.find(1,!0).line;return Nt(i)+1}function Xi(e,t){var i=kn&&t.markedSpans;if(i)for(var n=void 0,r=0;r<i.length;++r){if(n=i[r],!n.marker.collapsed)continue;if(n.from==null)return!0;if(n.marker.widgetNode)continue;if(n.from==0&&n.marker.inclusiveLeft&&la(e,t,n))return!0}}function la(e,t,i){if(i.to==null){var n=i.marker.find(1,!0);return la(e,n.line,lr(n.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var r=void 0,o=0;o<t.markedSpans.length;++o)if(r=t.markedSpans[o],r.marker.collapsed&&!r.marker.widgetNode&&r.from==i.to&&(r.to==null||r.to!=i.from)&&(r.marker.inclusiveLeft||i.marker.inclusiveRight)&&la(e,t,r))return!0}function Zi(e){e=Mi(e);for(var t=0,i=e.parent,n=0;n<i.lines.length;++n){var r=i.lines[n];if(r==e)break;t+=r.height}for(var o=i.parent;o;i=o,o=i.parent)for(var c=0;c<o.children.length;++c){var m=o.children[c];if(m==i)break;t+=m.height}return t}function Fr(e){if(e.height==0)return 0;for(var t=e.text.length,i,n=e;i=Ji(n);){var r=i.find(0,!0);n=r.from.line,t+=r.from.ch-r.to.ch}for(n=e;i=Pn(n);){var o=i.find(0,!0);t-=n.text.length-o.from.ch,n=o.to.line,t+=n.text.length-o.to.ch}return t}function Jr(e){var t=e.display,i=e.doc;t.maxLine=ze(i,i.first),t.maxLineLength=Fr(t.maxLine),t.maxLineChanged=!0,i.iter(function(n){var r=Fr(n);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=n)})}var Cr=function(e,t,i){this.text=e,Zn(this,t),this.height=i?i(this):1};Cr.prototype.lineNo=function(){return Nt(this)},pn(Cr);function Ya(e,t,i,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),vn(e),Zn(e,i);var r=n?n(e):1;r!=e.height&&kt(e,r)}function ua(e){e.parent=null,vn(e)}var Va={},br={};function ca(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?br:Va;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Ea(e,t){var i=z("span",null,null,a?"padding-right: .1px":null),n={pre:z("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var r=0;r<=(t.rest?t.rest.length:0);r++){var o=r?t.rest[r-1]:t.line,c=void 0;n.pos=0,n.addToken=qi,Pi(e.display.measure)&&(c=At(o,e.doc.direction))&&(n.addToken=Oo(n.addToken,c)),n.map=[];var m=t!=e.display.externalMeasured&&Nt(o);Ja(o,n,yn(e,o,m)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=u(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=u(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(rr(e.display.measure))),r==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(a){var b=n.content.lastChild;(/\bcm-tab\b/.test(b.className)||b.querySelector&&b.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Bt(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=u(n.pre.className,n.textClass||"")),n}function Xr(e){var t=ge("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function qi(e,t,i,n,r,o,c){if(!t)return;var m=e.splitSpaces?Aa(t,e.trailingSpace):t,b=e.cm.state.specialChars,w=!1,Z;if(!b.test(t))e.col+=t.length,Z=document.createTextNode(m),e.map.push(e.pos,e.pos+t.length,Z),ue&&se<9&&(w=!0),e.pos+=t.length;else{Z=document.createDocumentFragment();for(var oe=0;;){b.lastIndex=oe;var Re=b.exec(t),Te=Re?Re.index-oe:t.length-oe;if(Te){var Pe=document.createTextNode(m.slice(oe,oe+Te));ue&&se<9?Z.appendChild(ge("span",[Pe])):Z.appendChild(Pe),e.map.push(e.pos,e.pos+Te,Pe),e.col+=Te,e.pos+=Te}if(!Re)break;oe+=Te+1;var Ue=void 0;if(Re[0]==" "){var Qe=e.cm.options.tabSize,nt=Qe-e.col%Qe;Ue=Z.appendChild(ge("span",Oe(nt),"cm-tab")),Ue.setAttribute("role","presentation"),Ue.setAttribute("cm-text"," "),e.col+=nt}else Re[0]=="\r"||Re[0]==`
|
|
`?(Ue=Z.appendChild(ge("span",Re[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ue.setAttribute("cm-text",Re[0]),e.col+=1):(Ue=e.cm.options.specialCharPlaceholder(Re[0]),Ue.setAttribute("cm-text",Re[0]),ue&&se<9?Z.appendChild(ge("span",[Ue])):Z.appendChild(Ue),e.col+=1);e.map.push(e.pos,e.pos+1,Ue),e.pos++}}if(e.trailingSpace=m.charCodeAt(t.length-1)==32,i||n||r||w||o||c){var ot=i||"";n&&(ot+=n),r&&(ot+=r);var it=ge("span",[Z],ot,o);if(c)for(var dt in c)c.hasOwnProperty(dt)&&dt!="style"&&dt!="class"&&it.setAttribute(dt,c[dt]);return e.content.appendChild(it)}e.content.appendChild(Z)}function Aa(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,n="",r=0;r<e.length;r++){var o=e.charAt(r);o==" "&&i&&(r==e.length-1||e.charCodeAt(r+1)==32)&&(o="\xA0"),n+=o,i=o==" "}return n}function Oo(e,t){return function(i,n,r,o,c,m,b){r=r?r+" cm-force-border":"cm-force-border";for(var w=i.pos,Z=w+n.length;;){for(var oe=void 0,Re=0;Re<t.length&&!(oe=t[Re],oe.to>w&&oe.from<=w);Re++);if(oe.to>=Z)return e(i,n,r,o,c,m,b);e(i,n.slice(0,oe.to-w),r,o,null,m,b),o=null,n=n.slice(oe.to-w),w=oe.to}}}function Oa(e,t,i,n){var r=!n&&i.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!n&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",i.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t,e.trailingSpace=!1}function Ja(e,t,i){var n=e.markedSpans,r=e.text,o=0;if(!n){for(var c=1;c<i.length;c+=2)t.addToken(t,r.slice(o,o=i[c]),ca(i[c+1],t.cm.options));return}for(var m=r.length,b=0,w=1,Z="",oe,Re,Te=0,Pe,Ue,Qe,nt,ot;;){if(Te==b){Pe=Ue=Qe=Re="",ot=null,nt=null,Te=Infinity;for(var it=[],dt=void 0,St=0;St<n.length;++St){var vt=n[St],Xt=vt.marker;if(Xt.type=="bookmark"&&vt.from==b&&Xt.widgetNode)it.push(Xt);else if(vt.from<=b&&(vt.to==null||vt.to>b||Xt.collapsed&&vt.to==b&&vt.from==b)){if(vt.to!=null&&vt.to!=b&&Te>vt.to&&(Te=vt.to,Ue=""),Xt.className&&(Pe+=" "+Xt.className),Xt.css&&(Re=(Re?Re+";":"")+Xt.css),Xt.startStyle&&vt.from==b&&(Qe+=" "+Xt.startStyle),Xt.endStyle&&vt.to==Te&&(dt||(dt=[])).push(Xt.endStyle,vt.to),Xt.title&&((ot||(ot={})).title=Xt.title),Xt.attributes)for(var Wn in Xt.attributes)(ot||(ot={}))[Wn]=Xt.attributes[Wn];Xt.collapsed&&(!nt||xi(nt.marker,Xt)<0)&&(nt=vt)}else vt.from>b&&Te>vt.from&&(Te=vt.from)}if(dt)for(var Ii=0;Ii<dt.length;Ii+=2)dt[Ii+1]==Te&&(Ue+=" "+dt[Ii]);if(!nt||nt.from==b)for(var ni=0;ni<it.length;++ni)Oa(t,0,it[ni]);if(nt&&(nt.from||0)==b){if(Oa(t,(nt.to==null?m+1:nt.to)-b,nt.marker,nt.from==null),nt.to==null)return;nt.to==b&&(nt=!1)}}if(b>=m)break;for(var or=Math.min(m,Te);;){if(Z){var er=b+Z.length;if(!nt){var gi=er>or?Z.slice(0,or-b):Z;t.addToken(t,gi,oe?oe+Pe:Pe,Qe,b+gi.length==Te?Ue:"",Re,ot)}if(er>=or){Z=Z.slice(or-b),b=or;break}b=er,Qe=""}Z=r.slice(o,o=i[w++]),oe=ca(i[w++],t.cm.options)}}}function wa(e,t,i){this.line=t,this.rest=gr(t),this.size=this.rest?Nt(S(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Xi(e,t)}function xr(e,t,i){for(var n=[],r,o=t;o<i;o=r){var c=new wa(e.doc,ze(e.doc,o),o);r=o+c.size,n.push(c)}return n}var Br=null;function Ta(e){Br?Br.ops.push(e):e.ownsGroup=Br={ops:[e],delayedCallbacks:[]}}function da(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].call(null);for(var n=0;n<e.ops.length;n++){var r=e.ops[n];if(r.cursorActivityHandlers)for(;r.cursorActivityCalled<r.cursorActivityHandlers.length;)r.cursorActivityHandlers[r.cursorActivityCalled++].call(null,r.cm)}}while(i<t.length)}function Xa(e,t){var i=e.ownsGroup;if(!i)return;try{da(i)}finally{Br=null,t(i)}}var wt=null;function Be(e,t){var i=Xn(e,t);if(!i.length)return;var n=Array.prototype.slice.call(arguments,2),r;Br?r=Br.delayedCallbacks:wt?r=wt:(r=wt=[],setTimeout(ct,0));for(var o=function(m){r.push(function(){return i[m].apply(null,n)})},c=0;c<i.length;++c)o(c)}function ct(){var e=wt;wt=null;for(var t=0;t<e.length;++t)e[t]()}function Je(e,t,i,n){for(var r=0;r<t.changes.length;r++){var o=t.changes[r];o=="text"?bn(e,t):o=="gutter"?Nn(e,t,i,n):o=="class"?zn(e,t):o=="widget"&&ii(e,t,n)}t.changes=null}function _t(e){return e.node==e.text&&(e.node=ge("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),ue&&se<8&&(e.node.style.zIndex=2)),e.node}function jt(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var n=_t(t);t.background=n.insertBefore(ge("div",null,i),n.firstChild),e.display.input.setUneditable(t.background)}}function mn(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Ea(e,t)}function bn(e,t){var i=t.text.className,n=mn(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,zn(e,t)):i&&(t.text.className=i)}function zn(e,t){jt(e,t),t.line.wrapClass?_t(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function Nn(e,t,i,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var r=_t(t);t.gutterBackground=ge("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),r.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var c=_t(t),m=t.gutter=ge("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(m),c.insertBefore(m,t.text),t.line.gutterClass&&(m.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])&&(t.lineNumber=m.appendChild(ge("div",Hn(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var b=0;b<e.display.gutterSpecs.length;++b){var w=e.display.gutterSpecs[b].className,Z=o.hasOwnProperty(w)&&o[w];Z&&m.appendChild(ge("div",[Z],"CodeMirror-gutter-elt","left: "+n.gutterLeft[w]+"px; width: "+n.gutterWidth[w]+"px"))}}}function ii(e,t,i){t.alignable&&(t.alignable=null);for(var n=te("CodeMirror-linewidget"),r=t.node.firstChild,o=void 0;r;r=o)o=r.nextSibling,n.test(r.className)&&t.node.removeChild(r);Ri(e,t,i)}function ar(e,t,i,n){var r=mn(e,t);return t.text=t.node=r.pre,r.bgClass&&(t.bgClass=r.bgClass),r.textClass&&(t.textClass=r.textClass),zn(e,t),Nn(e,t,i,n),Ri(e,t,n),t.node}function Ri(e,t,i){if(Sa(e,t.line,t,i,!0),t.rest)for(var n=0;n<t.rest.length;n++)Sa(e,t.rest[n],t,i,!1)}function Sa(e,t,i,n,r){if(!t.widgets)return;for(var o=_t(i),c=0,m=t.widgets;c<m.length;++c){var b=m[c],w=ge("div",[b.node],"CodeMirror-linewidget"+(b.className?" "+b.className:""));b.handleMouseEvents||w.setAttribute("cm-ignore-events","true"),wo(b,w,i,n),e.display.input.setUneditable(w),r&&b.above?o.insertBefore(w,i.gutter||i.text):o.appendChild(w),Be(b,"redraw")}}function wo(e,t,i,n){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var r=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(r-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=r+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function mi(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!K(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),ye(t.display.measure,ge("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Er(e,t){for(var i=si(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function Za(e){return e.lineSpace.offsetTop}function V(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function de(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=ye(e.measure,ge("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function ve(e){return _e-e.display.nativeBarWidth}function X(e){return e.display.scroller.clientWidth-ve(e)-e.display.barWidth}function O(e){return e.display.scroller.clientHeight-ve(e)-e.display.barHeight}function B(e,t,i){var n=e.options.lineWrapping,r=n&&X(e);if(!t.measure.heights||n&&t.measure.width!=r){var o=t.measure.heights=[];if(n){t.measure.width=r;for(var c=t.text.firstChild.getClientRects(),m=0;m<c.length-1;m++){var b=c[m],w=c[m+1];Math.abs(b.bottom-w.bottom)>2&&o.push((b.bottom+w.top)/2-i.top)}}o.push(i.bottom-i.top)}}function x(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var r=0;r<e.rest.length;r++)if(Nt(e.rest[r])>i)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function ee(e,t){t=Mi(t);var i=Nt(t),n=e.display.externalMeasured=new wa(e.doc,t,i);n.lineN=i;var r=n.built=Ea(e,n);return n.text=r.pre,ye(e.display.lineMeasure,r.pre),n}function ne(e,t,i,n){return Se(e,fe(e,t),i,n)}function Ee(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Bn(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function fe(e,t){var i=Nt(t),n=Ee(e,i);n&&!n.text?n=null:n&&n.changes&&(Je(e,n,i,qn(e)),e.curOp.forceUpdate=!0),n||(n=ee(e,t));var r=x(n,t,i);return{line:t,view:n,rect:null,map:r.map,cache:r.cache,before:r.before,hasHeights:!1}}function Se(e,t,i,n,r){t.before&&(i=-1);var o=i+(n||""),c;return t.cache.hasOwnProperty(o)?c=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(B(e,t.view,t.rect),t.hasHeights=!0),c=tt(e,t,i,n),c.bogus||(t.cache[o]=c)),{left:c.left,right:c.right,top:r?c.rtop:c.top,bottom:r?c.rbottom:c.bottom}}var Le={left:0,right:0,top:0,bottom:0};function Ke(e,t,i){for(var n,r,o,c,m,b,w=0;w<e.length;w+=3)if(m=e[w],b=e[w+1],t<m?(r=0,o=1,c="left"):t<b?(r=t-m,o=r+1):(w==e.length-3||t==b&&e[w+3]>t)&&(o=b-m,r=o-1,t>=b&&(c="right")),r!=null){if(n=e[w+2],m==b&&i==(n.insertLeft?"left":"right")&&(c=i),i=="left"&&r==0)for(;w&&e[w-2]==e[w-3]&&e[w-1].insertLeft;)n=e[(w-=3)+2],c="left";if(i=="right"&&r==b-m)for(;w<e.length-3&&e[w+3]==e[w+4]&&!e[w+5].insertLeft;)n=e[(w+=3)+2],c="right";break}return{node:n,start:r,end:o,collapse:c,coverStart:m,coverEnd:b}}function He(e,t){var i=Le;if(t=="left")for(var n=0;n<e.length&&!((i=e[n]).left!=i.right);n++);else for(var r=e.length-1;r>=0&&!((i=e[r]).left!=i.right);r--);return i}function tt(e,t,i,n){var r=Ke(t.map,i,n),o=r.node,c=r.start,m=r.end,b=r.collapse,w;if(o.nodeType==3){for(var Z=0;Z<4;Z++){for(;c&&Ne(t.line.text.charAt(r.coverStart+c));)--c;for(;r.coverStart+m<r.coverEnd&&Ne(t.line.text.charAt(r.coverStart+m));)++m;if(ue&&se<9&&c==0&&m==r.coverEnd-r.coverStart?w=o.parentNode.getBoundingClientRect():w=He(F(o,c,m).getClientRects(),n),w.left||w.right||c==0)break;m=c,c=c-1,b="right"}ue&&se<11&&(w=Tt(e.display.measure,w))}else{c>0&&(b=n="right");var oe;e.options.lineWrapping&&(oe=o.getClientRects()).length>1?w=oe[n=="right"?oe.length-1:0]:w=o.getBoundingClientRect()}if(ue&&se<9&&!c&&(!w||!w.left&&!w.right)){var Re=o.parentNode.getClientRects()[0];Re?w={left:Re.left,right:Re.left+_i(e.display),top:Re.top,bottom:Re.bottom}:w=Le}for(var Te=w.top-t.rect.top,Pe=w.bottom-t.rect.top,Ue=(Te+Pe)/2,Qe=t.view.measure.heights,nt=0;nt<Qe.length-1&&!(Ue<Qe[nt]);nt++);var ot=nt?Qe[nt-1]:0,it=Qe[nt],dt={left:(b=="right"?w.right:w.left)-t.rect.left,right:(b=="left"?w.left:w.right)-t.rect.left,top:ot,bottom:it};return!w.left&&!w.right&&(dt.bogus=!0),e.options.singleCursorHeightPerLine||(dt.rtop=Te,dt.rbottom=Pe),dt}function Tt(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!We(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*n,bottom:t.bottom*n}}function Yt(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Ft(e){e.display.externalMeasure=null,le(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Yt(e.display.view[t])}function zt(e){Ft(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Vt(){return I&&T?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qt(){return I&&T?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Gt(e){var t=0;if(e.widgets)for(var i=0;i<e.widgets.length;++i)e.widgets[i].above&&(t+=mi(e.widgets[i]));return t}function on(e,t,i,n,r){if(!r){var o=Gt(t);i.top+=o,i.bottom+=o}if(n=="line")return i;n||(n="local");var c=Zi(t);if(n=="local"?c+=Za(e.display):c-=e.display.viewOffset,n=="page"||n=="window"){var m=e.display.lineSpace.getBoundingClientRect();c+=m.top+(n=="window"?0:Qt());var b=m.left+(n=="window"?0:Vt());i.left+=b,i.right+=b}return i.top+=c,i.bottom+=c,i}function qt(e,t,i){if(i=="div")return t;var n=t.left,r=t.top;if(i=="page")n-=Vt(),r-=Qt();else if(i=="local"||!i){var o=e.display.sizer.getBoundingClientRect();n+=o.left,r+=o.top}var c=e.display.lineSpace.getBoundingClientRect();return{left:n-c.left,top:r-c.top}}function Yn(e,t,i,n,r){return n||(n=ze(e.doc,t.line)),on(e,n,ne(e,n,t.ch,r),i)}function $t(e,t,i,n,r,o){n=n||ze(e.doc,t.line),r||(r=fe(e,n));function c(Pe,Ue){var Qe=Se(e,r,Pe,Ue?"right":"left",o);return Ue?Qe.left=Qe.right:Qe.right=Qe.left,on(e,n,Qe,i)}var m=At(n,e.doc.direction),b=t.ch,w=t.sticky;if(b>=n.text.length?(b=n.text.length,w="before"):b<=0&&(b=0,w="after"),!m)return c(w=="before"?b-1:b,w=="before");function Z(Pe,Ue,Qe){var nt=m[Ue],ot=nt.level==1;return c(Qe?Pe-1:Pe,ot!=Qe)}var oe=Ze(m,b,w),Re=st,Te=Z(b,oe,w=="before");return Re!=null&&(Te.other=Z(b,Re,w!="before")),Te}function Et(e,t){var i=0;t=et(e.doc,t),e.options.lineWrapping||(i=_i(e.display)*t.ch);var n=ze(e.doc,t.line),r=Zi(n)+Za(e.display);return{left:i,right:i,top:r,bottom:r+n.height}}function gt(e,t,i,n,r){var o=je(e,t,i);return o.xRel=r,n&&(o.outside=n),o}function nn(e,t,i){var n=e.doc;if(i+=e.display.viewOffset,i<0)return gt(n.first,0,null,-1,-1);var r=Kt(n,i),o=n.first+n.size-1;if(r>o)return gt(n.first+n.size-1,ze(n,o).text.length,null,1,1);t<0&&(t=0);for(var c=ze(n,r);;){var m=Vn(e,c,r,t,i),b=Wi(c,m.ch+(m.xRel>0||m.outside>0?1:0));if(!b)return m;var w=b.find(1);if(w.line==r)return w;c=ze(n,r=w.line)}}function sn(e,t,i,n){n-=Gt(t);var r=t.text.length,o=$e(function(c){return Se(e,i,c-1).bottom<=n},r,0);return r=$e(function(c){return Se(e,i,c).top>n},o,r),{begin:o,end:r}}function ft(e,t,i,n){i||(i=fe(e,t));var r=on(e,t,Se(e,i,n),"line").top;return sn(e,t,i,r)}function dn(e,t,i,n){return e.bottom<=i?!1:e.top>i?!0:(n?e.left:e.right)>t}function Vn(e,t,i,n,r){r-=Zi(t);var o=fe(e,t),c=Gt(t),m=0,b=t.text.length,w=!0,Z=At(t,e.doc.direction);if(Z){var oe=(e.options.lineWrapping?Dn:gn)(e,t,i,o,Z,n,r);w=oe.level!=1,m=w?oe.from:oe.to-1,b=w?oe.to:oe.from-1}var Re=null,Te=null,Pe=$e(function(St){var vt=Se(e,o,St);return vt.top+=c,vt.bottom+=c,dn(vt,n,r,!1)?(vt.top<=r&&vt.left<=n&&(Re=St,Te=vt),!0):!1},m,b),Ue,Qe,nt=!1;if(Te){var ot=n-Te.left<Te.right-n,it=ot==w;Pe=Re+(it?0:1),Qe=it?"after":"before",Ue=ot?Te.left:Te.right}else{!w&&(Pe==b||Pe==m)&&Pe++,Qe=Pe==0?"after":Pe==t.text.length?"before":Se(e,o,Pe-(w?1:0)).bottom+c<=r==w?"after":"before";var dt=$t(e,je(i,Pe,Qe),"line",t,o);Ue=dt.left,nt=r<dt.top?-1:r>=dt.bottom?1:0}return Pe=ke(t.text,Pe,1),gt(i,Pe,Qe,nt,n-Ue)}function gn(e,t,i,n,r,o,c){var m=$e(function(oe){var Re=r[oe],Te=Re.level!=1;return dn($t(e,je(i,Te?Re.to:Re.from,Te?"before":"after"),"line",t,n),o,c,!0)},0,r.length-1),b=r[m];if(m>0){var w=b.level!=1,Z=$t(e,je(i,w?b.from:b.to,w?"after":"before"),"line",t,n);dn(Z,o,c,!0)&&Z.top>c&&(b=r[m-1])}return b}function Dn(e,t,i,n,r,o,c){var m=sn(e,t,n,c),b=m.begin,w=m.end;/\s/.test(t.text.charAt(w-1))&&w--;for(var Z=null,oe=null,Re=0;Re<r.length;Re++){var Te=r[Re];if(Te.from>=w||Te.to<=b)continue;var Pe=Te.level!=1,Ue=Se(e,n,Pe?Math.min(w,Te.to)-1:Math.max(b,Te.from)).right,Qe=Ue<o?o-Ue+1e9:Ue-o;(!Z||oe>Qe)&&(Z=Te,oe=Qe)}return Z||(Z=r[r.length-1]),Z.from<b&&(Z={from:b,to:Z.to,level:Z.level}),Z.to>w&&(Z={from:Z.from,to:w,level:Z.level}),Z}var Sn;function ri(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Sn==null){Sn=ge("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Sn.appendChild(document.createTextNode("x")),Sn.appendChild(ge("br"));Sn.appendChild(document.createTextNode("x"))}ye(e.measure,Sn);var i=Sn.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),le(e.measure),i||1}function _i(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=ge("span","xxxxxxxxxx"),i=ge("pre",[t],"CodeMirror-line-like");ye(e.measure,i);var n=t.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function qn(e){for(var t=e.display,i={},n={},r=t.gutters.clientLeft,o=t.gutters.firstChild,c=0;o;o=o.nextSibling,++c){var m=e.display.gutterSpecs[c].className;i[m]=o.offsetLeft+o.clientLeft+r,n[m]=o.clientWidth}return{fixedPos:ji(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function ji(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function cr(e){var t=ri(e.display),i=e.options.lineWrapping,n=i&&Math.max(5,e.display.scroller.clientWidth/_i(e.display)-3);return function(r){if(Xi(e.doc,r))return 0;var o=0;if(r.widgets)for(var c=0;c<r.widgets.length;c++)r.widgets[c].height&&(o+=r.widgets[c].height);return i?o+(Math.ceil(r.text.length/n)||1)*t:o+t}}function Hi(e){var t=e.doc,i=cr(e);t.iter(function(n){var r=i(n);r!=n.height&&kt(n,r)})}function yi(e,t,i,n){var r=e.display;if(!i&&si(t).getAttribute("cm-not-content")=="true")return null;var o,c,m=r.lineSpace.getBoundingClientRect();try{o=t.clientX-m.left,c=t.clientY-m.top}catch(oe){return null}var b=nn(e,o,c),w;if(n&&b.xRel>0&&(w=ze(e.doc,b.line).text).length==b.ch){var Z=C(w,w.length,e.options.tabSize)-w.length;b=je(b.line,Math.max(0,Math.round((o-de(e.display).left)/_i(e.display))-Z))}return b}function Bn(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var i=e.display.view,n=0;n<i.length;n++)if(t-=i[n].size,t<0)return n}function Mn(e,t,i,n){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),n||(n=0);var r=e.display;if(n&&i<r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>t)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)kn&&vr(e.doc,t)<r.viewTo&&Jn(e);else if(i<=r.viewFrom)kn&&Sr(e.doc,i+n)>r.viewFrom?Jn(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&i>=r.viewTo)Jn(e);else if(t<=r.viewFrom){var o=dr(e,i,i+n,1);o?(r.view=r.view.slice(o.index),r.viewFrom=o.lineN,r.viewTo+=n):Jn(e)}else if(i>=r.viewTo){var c=dr(e,t,t,-1);c?(r.view=r.view.slice(0,c.index),r.viewTo=c.lineN):Jn(e)}else{var m=dr(e,t,t,-1),b=dr(e,i,i+n,1);m&&b?(r.view=r.view.slice(0,m.index).concat(xr(e,m.lineN,b.lineN)).concat(r.view.slice(b.index)),r.viewTo+=n):Jn(e)}var w=r.externalMeasured;w&&(i<w.lineN?w.lineN+=n:t<w.lineN+w.size&&(r.externalMeasured=null))}function $n(e,t,i){e.curOp.viewChanged=!0;var n=e.display,r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size&&(n.externalMeasured=null),t<n.viewFrom||t>=n.viewTo)return;var o=n.view[Bn(e,t)];if(o.node==null)return;var c=o.changes||(o.changes=[]);he(c,i)==-1&&c.push(i)}function Jn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function dr(e,t,i,n){var r=Bn(e,t),o,c=e.display.view;if(!kn||i==e.doc.first+e.doc.size)return{index:r,lineN:i};for(var m=e.display.viewFrom,b=0;b<r;b++)m+=c[b].size;if(m!=t){if(n>0){if(r==c.length-1)return null;o=m+c[r].size-t,r++}else o=m-t;t+=o,i+=o}for(;vr(e.doc,i)!=i;){if(r==(n<0?0:c.length-1))return null;i+=n*c[r-(n<0?1:0)].size,r+=n}return{index:r,lineN:i}}function Rr(e,t,i){var n=e.display,r=n.view;r.length==0||t>=n.viewTo||i<=n.viewFrom?(n.view=xr(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=xr(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Bn(e,t))),n.viewFrom=t,n.viewTo<i?n.view=n.view.concat(xr(e,n.viewTo,i)):n.viewTo>i&&(n.view=n.view.slice(0,Bn(e,i)))),n.viewTo=i}function Ir(e){for(var t=e.display.view,i=0,n=0;n<t.length;n++){var r=t[n];!r.hidden&&(!r.node||r.changes)&&++i}return i}function Cn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function _r(e,t){t===void 0&&(t=!0);for(var i=e.doc,n={},r=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),c=0;c<i.sel.ranges.length;c++){if(!t&&c==i.sel.primIndex)continue;var m=i.sel.ranges[c];if(m.from().line>=e.display.viewTo||m.to().line<e.display.viewFrom)continue;var b=m.empty();(b||e.options.showCursorWhenSelecting)&&Nr(e,m.head,r),b||Tn(e,m,o)}return n}function Nr(e,t,i){var n=$t(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),r=i.appendChild(ge("div","\xA0","CodeMirror-cursor"));if(r.style.left=n.left+"px",r.style.top=n.top+"px",r.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var o=i.appendChild(ge("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=n.other.left+"px",o.style.top=n.other.top+"px",o.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function jn(e,t){return e.top-t.top||e.left-t.left}function Tn(e,t,i){var n=e.display,r=e.doc,o=document.createDocumentFragment(),c=de(e.display),m=c.left,b=Math.max(n.sizerWidth,X(e)-n.sizer.offsetLeft)-c.right,w=r.direction=="ltr";function Z(it,dt,St,vt){dt<0&&(dt=0),dt=Math.round(dt),vt=Math.round(vt),o.appendChild(ge("div",null,"CodeMirror-selected","position: absolute; left: "+it+`px;
|
|
top: `+dt+"px; width: "+(St==null?b-it:St)+`px;
|
|
height: `+(vt-dt)+"px"))}function oe(it,dt,St){var vt=ze(r,it),Xt=vt.text.length,Wn,Ii;function ni(gi,tr){return Yn(e,je(it,gi),"div",vt,tr)}function or(gi,tr,ki){var wi=ft(e,vt,null,gi),vi=tr=="ltr"==(ki=="after")?"left":"right",ai=ki=="after"?wi.begin:wi.end-(/\s/.test(vt.text.charAt(wi.end-1))?2:1);return ni(ai,vi)[vi]}var er=At(vt,r.direction);return Xe(er,dt||0,St==null?Xt:St,function(gi,tr,ki,wi){var vi=ki=="ltr",ai=ni(gi,vi?"left":"right"),nr=ni(tr-1,vi?"right":"left"),Ga=dt==null&&gi==0,oa=St==null&&tr==Xt,Fi=wi==0,Pr=!er||wi==er.length-1;if(nr.top-ai.top<=3){var Ni=(w?Ga:oa)&&Fi,ps=(w?oa:Ga)&&Pr,Yr=Ni?m:(vi?ai:nr).left,va=ps?b:(vi?nr:ai).right;Z(Yr,ai.top,va-Yr,ai.bottom)}else{var ba,Qi,Qa,ms;vi?(ba=w&&Ga&&Fi?m:ai.left,Qi=w?b:or(gi,ki,"before"),Qa=w?m:or(tr,ki,"after"),ms=w&&oa&&Pr?b:nr.right):(ba=w?or(gi,ki,"before"):m,Qi=!w&&Ga&&Fi?b:ai.right,Qa=!w&&oa&&Pr?m:nr.left,ms=w?or(tr,ki,"after"):b),Z(ba,ai.top,Qi-ba,ai.bottom),ai.bottom<nr.top&&Z(m,ai.bottom,null,nr.top),Z(Qa,nr.top,ms-Qa,nr.bottom)}(!Wn||jn(ai,Wn)<0)&&(Wn=ai),jn(nr,Wn)<0&&(Wn=nr),(!Ii||jn(ai,Ii)<0)&&(Ii=ai),jn(nr,Ii)<0&&(Ii=nr)}),{start:Wn,end:Ii}}var Re=t.from(),Te=t.to();if(Re.line==Te.line)oe(Re.line,Re.ch,Te.ch);else{var Pe=ze(r,Re.line),Ue=ze(r,Te.line),Qe=Mi(Pe)==Mi(Ue),nt=oe(Re.line,Re.ch,Qe?Pe.text.length+1:null).end,ot=oe(Te.line,Qe?0:null,Te.ch).start;Qe&&(nt.top<ot.top-2?(Z(nt.right,nt.top,null,nt.bottom),Z(m,ot.top,ot.left,ot.bottom)):Z(nt.right,nt.top,ot.left-nt.right,nt.bottom)),nt.bottom<ot.top&&Z(m,nt.bottom,null,ot.top)}i.appendChild(o)}function Ei(e){if(!e.state.focused)return;var t=e.display;clearInterval(t.blinker);var i=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Zr(e),t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}function To(e){e.state.focused||(e.display.input.focus(),Dr(e))}function qa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Zr(e))},100)}function Dr(e,t){if(e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly=="nocursor")return;e.state.focused||(Bt(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),a&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ei(e)}function Zr(e,t){if(e.state.delayingBlurEvent)return;e.state.focused&&(Bt(e,"blur",e,t),e.state.focused=!1,H(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Ca(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var r=t.view[n],o=e.options.lineWrapping,c=void 0,m=0;if(r.hidden)continue;if(ue&&se<8){var b=r.node.offsetTop+r.node.offsetHeight;c=b-i,i=b}else{var w=r.node.getBoundingClientRect();c=w.bottom-w.top,!o&&r.text.firstChild&&(m=r.text.firstChild.getBoundingClientRect().right-w.left-1)}var Z=r.line.height-c;if((Z>.005||Z<-.005)&&(kt(r.line,c),$a(r.line),r.rest))for(var oe=0;oe<r.rest.length;oe++)$a(r.rest[oe]);if(m>e.display.sizerWidth){var Re=Math.ceil(m/_i(e.display));Re>e.display.maxLineLength&&(e.display.maxLineLength=Re,e.display.maxLine=r.line,e.display.maxLineChanged=!0)}}}function $a(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var i=e.widgets[t],n=i.node.parentNode;n&&(i.height=n.offsetHeight)}}function xa(e,t,i){var n=i&&i.top!=null?Math.max(0,i.top):e.scroller.scrollTop;n=Math.floor(n-Za(e));var r=i&&i.bottom!=null?i.bottom:n+e.wrapper.clientHeight,o=Kt(t,n),c=Kt(t,r);if(i&&i.ensure){var m=i.ensure.from.line,b=i.ensure.to.line;m<o?(o=m,c=Kt(t,Zi(ze(t,m))+e.wrapper.clientHeight)):Math.min(b,t.lastLine())>=c&&(o=Kt(t,Zi(ze(t,b))-e.wrapper.clientHeight),c=b)}return{from:o,to:Math.max(c,o+1)}}function Yo(e,t){if(ut(e,"scrollCursorIntoView"))return;var i=e.display,n=i.sizer.getBoundingClientRect(),r=null;if(t.top+n.top<0?r=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),r!=null&&!h){var o=ge("div","\u200B",null,`position: absolute;
|
|
top: `+(t.top-i.viewOffset-Za(e.display))+`px;
|
|
height: `+(t.bottom-t.top+ve(e)+i.barHeight)+`px;
|
|
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(r),e.display.lineSpace.removeChild(o)}}function Vo(e,t,i,n){n==null&&(n=0);var r;!e.options.lineWrapping&&t==i&&(t=t.ch?je(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,i=t.sticky=="before"?je(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var c=!1,m=$t(e,t),b=!i||i==t?m:$t(e,i);r={left:Math.min(m.left,b.left),top:Math.min(m.top,b.top)-n,right:Math.max(m.left,b.left),bottom:Math.max(m.bottom,b.bottom)+n};var w=eo(e,r),Z=e.doc.scrollTop,oe=e.doc.scrollLeft;if(w.scrollTop!=null&&(ea(e,w.scrollTop),Math.abs(e.doc.scrollTop-Z)>1&&(c=!0)),w.scrollLeft!=null&&(hr(e,w.scrollLeft),Math.abs(e.doc.scrollLeft-oe)>1&&(c=!0)),!c)break}return r}function So(e,t){var i=eo(e,t);i.scrollTop!=null&&ea(e,i.scrollTop),i.scrollLeft!=null&&hr(e,i.scrollLeft)}function eo(e,t){var i=e.display,n=ri(e.display);t.top<0&&(t.top=0);var r=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,o=O(e),c={};t.bottom-t.top>o&&(t.bottom=t.top+o);var m=e.doc.height+V(i),b=t.top<n,w=t.bottom>m-n;if(t.top<r)c.scrollTop=b?0:t.top;else if(t.bottom>r+o){var Z=Math.min(t.top,(w?m:t.bottom)-o);Z!=r&&(c.scrollTop=Z)}var oe=e.options.fixedGutter?0:i.gutters.offsetWidth,Re=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-oe,Te=X(e)-i.gutters.offsetWidth,Pe=t.right-t.left>Te;return Pe&&(t.right=t.left+Te),t.left<10?c.scrollLeft=0:t.left<Re?c.scrollLeft=Math.max(0,t.left+oe-(Pe?0:10)):t.right>Te+Re-3&&(c.scrollLeft=t.right+(Pe?0:10)-Te),c}function to(e,t){if(t==null)return;Ra(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t}function qr(e){Ra(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function $r(e,t,i){(t!=null||i!=null)&&Ra(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function Jo(e,t){Ra(e),e.curOp.scrollToPos=t}function Ra(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=Et(e,t.from),n=Et(e,t.to);ha(e,i,n,t.margin)}}function ha(e,t,i,n){var r=eo(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-n,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+n});$r(e,r.scrollLeft,r.scrollTop)}function ea(e,t){if(Math.abs(e.doc.scrollTop-t)<2)return;Ie||ma(e,{top:t}),ta(e,t,!0),Ie&&ma(e),pa(e,100)}function ta(e,t,i){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!i)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function hr(e,t,i,n){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)return;e.doc.scrollLeft=t,an(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function Wr(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+V(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?i:0,docHeight:n,scrollHeight:n+ve(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var Mr=function(e,t,i){this.cm=i;var n=this.vert=ge("div",[ge("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=ge("div",[ge("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=r.tabIndex=-1,e(n),e(r),qe(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),qe(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ue&&se<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var r=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(i?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:i?n:0,bottom:t?n:0}},Mr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mr.prototype.zeroWidthHack=function(){var e=_&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new D,this.disableVert=new D},Mr.prototype.enableZeroWidthBar=function(e,t,i){e.style.pointerEvents="auto";function n(){var r=e.getBoundingClientRect(),o=i=="vert"?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Mr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var fa=function(){};fa.prototype.update=function(){return{bottom:0,right:0}},fa.prototype.setScrollLeft=function(){},fa.prototype.setScrollTop=function(){},fa.prototype.clear=function(){};function Hr(e,t){t||(t=Wr(e));var i=e.display.barWidth,n=e.display.barHeight;Ia(e,t);for(var r=0;r<4&&i!=e.display.barWidth||n!=e.display.barHeight;r++)i!=e.display.barWidth&&e.options.lineWrapping&&Ca(e),Ia(e,Wr(e)),i=e.display.barWidth,n=e.display.barHeight}function Ia(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",i.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var no={native:Mr,null:fa};function Na(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new no[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),qe(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?hr(e,t):ea(e,t)},e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}var io=0;function Lr(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:++io},Ta(e.curOp)}function Kr(e){var t=e.curOp;t&&Xa(t,function(i){for(var n=0;n<i.ops.length;n++)i.ops[n].cm.curOp=null;Co(i)})}function Co(e){for(var t=e.ops,i=0;i<t.length;i++)Xo(t[i]);for(var n=0;n<t.length;n++)Zo(t[n]);for(var r=0;r<t.length;r++)qo(t[r]);for(var o=0;o<t.length;o++)ro(t[o]);for(var c=0;c<t.length;c++)$o(t[c])}function Xo(e){var t=e.cm,i=t.display;xo(t),e.updateMaxLine&&Jr(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new fr(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Zo(e){e.updatedDisplay=e.mustUpdate&&zr(e.cm,e.update)}function qo(e){var t=e.cm,i=t.display;e.updatedDisplay&&Ca(t),e.barMeasure=Wr(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ne(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+ve(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-X(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function ro(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&hr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==xe();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Hr(t,e.barMeasure),e.updatedDisplay&&An(t,e.barMeasure),e.selectionChanged&&Ei(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&To(e.cm)}function $o(e){var t=e.cm,i=t.display,n=t.doc;if(e.updatedDisplay&&Da(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&ta(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&hr(t,e.scrollLeft,!0,!0),e.scrollToPos){var r=Vo(t,et(n,e.scrollToPos.from),et(n,e.scrollToPos.to),e.scrollToPos.margin);Yo(t,r)}var o=e.maybeHiddenMarkers,c=e.maybeUnhiddenMarkers;if(o)for(var m=0;m<o.length;++m)o[m].lines.length||Bt(o[m],"hide");if(c)for(var b=0;b<c.length;++b)c[b].lines.length&&Bt(c[b],"unhide");i.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Bt(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Ki(e,t){if(e.curOp)return t();Lr(e);try{return t()}finally{Kr(e)}}function ui(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Lr(e);try{return t.apply(e,arguments)}finally{Kr(e)}}}function Li(e){return function(){if(this.curOp)return e.apply(this,arguments);Lr(this);try{return e.apply(this,arguments)}finally{Kr(this)}}}function ci(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Lr(t);try{return e.apply(this,arguments)}finally{Kr(t)}}}function pa(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,A(es,e))}function es(e){var t=e.doc;if(t.highlightFrontier>=e.display.viewTo)return;var i=+new Date+e.options.workTime,n=Jt(e,t.highlightFrontier),r=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var c=o.styles,m=o.text.length>e.options.maxHighlightLength?at(t.mode,n.state):null,b=Gn(e,o,n,!0);m&&(n.state=m),o.styles=b.styles;var w=o.styleClasses,Z=b.classes;Z?o.styleClasses=Z:w&&(o.styleClasses=null);for(var oe=!c||c.length!=o.styles.length||w!=Z&&(!w||!Z||w.bgClass!=Z.bgClass||w.textClass!=Z.textClass),Re=0;!oe&&Re<c.length;++Re)oe=c[Re]!=o.styles[Re];oe&&r.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&rn(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>i)return pa(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),r.length&&Ki(e,function(){for(var o=0;o<r.length;o++)$n(e,r[o],"text")})}var fr=function(e,t,i){var n=e.display;this.viewport=t,this.visible=xa(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=X(e),this.force=i,this.dims=qn(e),this.events=[]};fr.prototype.signal=function(e,t){It(e,t)&&this.events.push(arguments)},fr.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Bt.apply(null,this.events[e])};function xo(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=ve(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=ve(e)+"px",t.scrollbarsClipped=!0)}function Ro(e){if(e.hasFocus())return null;var t=xe();if(!t||!K(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&K(e.display.lineDiv,n.anchorNode)&&(i.anchorNode=n.anchorNode,i.anchorOffset=n.anchorOffset,i.focusNode=n.focusNode,i.focusOffset=n.focusOffset)}return i}function Io(e){if(!e||!e.activeElt||e.activeElt==xe())return;if(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&K(document.body,e.anchorNode)&&K(document.body,e.focusNode)){var t=window.getSelection(),i=document.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),t.removeAllRanges(),t.addRange(i),t.extend(e.focusNode,e.focusOffset)}}function zr(e,t){var i=e.display,n=e.doc;if(t.editorIsHidden)return Jn(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&Ir(e)==0)return!1;Ai(e)&&(Jn(e),t.dims=qn(e));var r=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),c=Math.min(r,t.visible.to+e.options.viewportMargin);i.viewFrom<o&&o-i.viewFrom<20&&(o=Math.max(n.first,i.viewFrom)),i.viewTo>c&&i.viewTo-c<20&&(c=Math.min(r,i.viewTo)),kn&&(o=vr(e.doc,o),c=Sr(e.doc,c));var m=o!=i.viewFrom||c!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;Rr(e,o,c),i.viewOffset=Zi(ze(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var b=Ir(e);if(!m&&b==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var w=Ro(e);return b>4&&(i.lineDiv.style.display="none"),No(e,i.updateLineNumbers,t.dims),b>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,Io(w),le(i.cursorDiv),le(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,m&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,pa(e,400)),i.updateLineNumbers=null,!0}function Da(e,t){for(var i=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==X(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+V(e.display)-O(e),i.top)}),t.visible=xa(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=xa(e.display,e.doc,i));if(!zr(e,t))break;Ca(e);var r=Wr(e);Cn(e),Hr(e,r),An(e,r),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 ma(e,t){var i=new fr(e,t);if(zr(e,i)){Ca(e),Da(e,i);var n=Wr(e);Cn(e),Hr(e,n),An(e,n),i.finish()}}function No(e,t,i){var n=e.display,r=e.options.lineNumbers,o=n.lineDiv,c=o.firstChild;function m(Pe){var Ue=Pe.nextSibling;return a&&_&&e.display.currentWheelTarget==Pe?Pe.style.display="none":Pe.parentNode.removeChild(Pe),Ue}for(var b=n.view,w=n.viewFrom,Z=0;Z<b.length;Z++){var oe=b[Z];if(!oe.hidden)if(!oe.node||oe.node.parentNode!=o){var Re=ar(e,oe,w,i);o.insertBefore(Re,c)}else{for(;c!=oe.node;)c=m(c);var Te=r&&t!=null&&t<=w&&oe.lineNumber;oe.changes&&(he(oe.changes,"gutter")>-1&&(Te=!1),Je(e,oe,w,i)),Te&&(le(oe.lineNumber),oe.lineNumber.appendChild(document.createTextNode(Hn(e.options,w)))),c=oe.node.nextSibling}w+=oe.size}for(;c;)c=m(c)}function Ma(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function An(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+ve(e)+"px"}function an(e){var t=e.display,i=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var n=ji(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,o=n+"px",c=0;c<i.length;c++)if(!i[c].hidden){e.options.fixedGutter&&(i[c].gutter&&(i[c].gutter.style.left=o),i[c].gutterBackground&&(i[c].gutterBackground.style.left=o));var m=i[c].alignable;if(m)for(var b=0;b<m.length;b++)m[b].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+r+"px")}function Ai(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=Hn(e.options,t.first+t.size-1),n=e.display;if(i.length!=n.lineNumChars){var r=n.measure.appendChild(ge("div",[ge("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=r.firstChild.offsetWidth,c=r.offsetWidth-o;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(o,n.lineGutter.offsetWidth-c)+1,n.lineNumWidth=n.lineNumInnerWidth+c,n.lineNumChars=n.lineNumInnerWidth?i.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",Ma(e.display),!0}return!1}function zi(e,t){for(var i=[],n=!1,r=0;r<e.length;r++){var o=e[r],c=null;if(typeof o!="string"&&(c=o.style,o=o.className),o=="CodeMirror-linenumbers")if(t)n=!0;else continue;i.push({className:o,style:c})}return t&&!n&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function na(e){var t=e.gutters,i=e.gutterSpecs;le(t),e.lineGutter=null;for(var n=0;n<i.length;++n){var r=i[n],o=r.className,c=r.style,m=t.appendChild(ge("div",null,"CodeMirror-gutter "+o));c&&(m.style.cssText=c),o=="CodeMirror-linenumbers"&&(e.lineGutter=m,m.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",Ma(e)}function Ar(e){na(e.display),Mn(e),an(e)}function ga(e,t,i,n){var r=this;this.input=i,r.scrollbarFiller=ge("div",null,"CodeMirror-scrollbar-filler"),r.scrollbarFiller.setAttribute("cm-not-content","true"),r.gutterFiller=ge("div",null,"CodeMirror-gutter-filler"),r.gutterFiller.setAttribute("cm-not-content","true"),r.lineDiv=z("div",null,"CodeMirror-code"),r.selectionDiv=ge("div",null,null,"position: relative; z-index: 1"),r.cursorDiv=ge("div",null,"CodeMirror-cursors"),r.measure=ge("div",null,"CodeMirror-measure"),r.lineMeasure=ge("div",null,"CodeMirror-measure"),r.lineSpace=z("div",[r.measure,r.lineMeasure,r.selectionDiv,r.cursorDiv,r.lineDiv],null,"position: relative; outline: none");var o=z("div",[r.lineSpace],"CodeMirror-lines");r.mover=ge("div",[o],null,"position: relative"),r.sizer=ge("div",[r.mover],"CodeMirror-sizer"),r.sizerWidth=null,r.heightForcer=ge("div",null,null,"position: absolute; height: "+_e+"px; width: 1px;"),r.gutters=ge("div",null,"CodeMirror-gutters"),r.lineGutter=null,r.scroller=ge("div",[r.sizer,r.heightForcer,r.gutters],"CodeMirror-scroll"),r.scroller.setAttribute("tabIndex","-1"),r.wrapper=ge("div",[r.scrollbarFiller,r.gutterFiller,r.scroller],"CodeMirror"),ue&&se<8&&(r.gutters.style.zIndex=-1,r.scroller.style.paddingRight=0),!a&&!(Ie&&W)&&(r.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(r.wrapper):e(r.wrapper)),r.viewFrom=r.viewTo=t.first,r.reportedViewFrom=r.reportedViewTo=t.first,r.view=[],r.renderedView=null,r.externalMeasured=null,r.viewOffset=0,r.lastWrapHeight=r.lastWrapWidth=0,r.updateLineNumbers=null,r.nativeBarWidth=r.barHeight=r.barWidth=0,r.scrollbarsClipped=!1,r.lineNumWidth=r.lineNumInnerWidth=r.lineNumChars=null,r.alignWidgets=!1,r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.maxLine=null,r.maxLineLength=0,r.maxLineChanged=!1,r.wheelDX=r.wheelDY=r.wheelStartX=r.wheelStartY=null,r.shift=!1,r.selForContextMenu=null,r.activeTouch=null,r.gutterSpecs=zi(n.gutters,n.lineNumbers),na(r),i.init(r)}var kr=0,Oi=null;ue?Oi=-.53:Ie?Oi=15:I?Oi=-.7:f&&(Oi=-1/3);function La(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function ao(e){var t=La(e);return t.x*=Oi,t.y*=Oi,t}function oo(e,t){var i=La(t),n=i.x,r=i.y,o=e.display,c=o.scroller,m=c.scrollWidth>c.clientWidth,b=c.scrollHeight>c.clientHeight;if(!(n&&m||r&&b))return;if(r&&_&&a){e:for(var w=t.target,Z=o.view;w!=c;w=w.parentNode)for(var oe=0;oe<Z.length;oe++)if(Z[oe].node==w){e.display.currentWheelTarget=w;break e}}if(n&&!Ie&&!E&&Oi!=null){r&&b&&ea(e,Math.max(0,c.scrollTop+r*Oi)),hr(e,Math.max(0,c.scrollLeft+n*Oi)),(!r||r&&b)&&en(t),o.wheelStartX=null;return}if(r&&Oi!=null){var Re=r*Oi,Te=e.doc.scrollTop,Pe=Te+o.wrapper.clientHeight;Re<0?Te=Math.max(0,Te+Re-50):Pe=Math.min(e.doc.height,Pe+Re+50),ma(e,{top:Te,bottom:Pe})}kr<20&&(o.wheelStartX==null?(o.wheelStartX=c.scrollLeft,o.wheelStartY=c.scrollTop,o.wheelDX=n,o.wheelDY=r,setTimeout(function(){if(o.wheelStartX==null)return;var Ue=c.scrollLeft-o.wheelStartX,Qe=c.scrollTop-o.wheelStartY,nt=Qe&&o.wheelDY&&Qe/o.wheelDY||Ue&&o.wheelDX&&Ue/o.wheelDX;if(o.wheelStartX=o.wheelStartY=null,!nt)return;Oi=(Oi*kr+nt)/(kr+1),++kr},200)):(o.wheelDX+=n,o.wheelDY+=r))}var Gi=function(e,t){this.ranges=e,this.primIndex=t};Gi.prototype.primary=function(){return this.ranges[this.primIndex]},Gi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var i=this.ranges[t],n=e.ranges[t];if(!Un(i.anchor,n.anchor)||!Un(i.head,n.head))return!1}return!0},Gi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new _n(bi(this.ranges[t].anchor),bi(this.ranges[t].head));return new Gi(e,this.primIndex)},Gi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Gi.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var n=this.ranges[i];if(lt(t,n.from())>=0&<(e,n.to())<=0)return i}return-1};var _n=function(e,t){this.anchor=e,this.head=t};_n.prototype.from=function(){return xt(this.anchor,this.head)},_n.prototype.to=function(){return wn(this.anchor,this.head)},_n.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function pr(e,t,i){var n=e&&e.options.selectionsMayTouch,r=t[i];t.sort(function(Re,Te){return lt(Re.from(),Te.from())}),i=he(t,r);for(var o=1;o<t.length;o++){var c=t[o],m=t[o-1],b=lt(m.to(),c.from());if(n&&!c.empty()?b>0:b>=0){var w=xt(m.from(),c.from()),Z=wn(m.to(),c.to()),oe=m.empty()?c.from()==c.head:m.from()==m.head;o<=i&&--i,t.splice(--o,2,new _n(oe?Z:w,oe?w:Z))}}return new Gi(t,i)}function Or(e,t){return new Gi([new _n(e,t||e)],0)}function wr(e){return e.text?je(e.from.line+e.text.length-1,S(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function so(e,t){if(lt(e,t.from)<0)return e;if(lt(e,t.to)<=0)return wr(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=wr(t).ch-t.to.ch),je(i,n)}function ka(e,t){for(var i=[],n=0;n<e.sel.ranges.length;n++){var r=e.sel.ranges[n];i.push(new _n(so(r.anchor,t),so(r.head,t)))}return pr(e.cm,i,e.sel.primIndex)}function Do(e,t,i){return e.line==t.line?je(i.line,e.ch-t.ch+i.ch):je(i.line+(e.line-t.line),e.ch)}function Mo(e,t,i){for(var n=[],r=je(e.first,0),o=r,c=0;c<t.length;c++){var m=t[c],b=Do(m.from,r,o),w=Do(wr(m),r,o);if(r=m.to,o=w,i=="around"){var Z=e.sel.ranges[c],oe=lt(Z.head,Z.anchor)<0;n[c]=new _n(oe?w:b,oe?b:w)}else n[c]=new _n(b,b)}return new Gi(n,e.sel.primIndex)}function Gr(e){e.doc.mode=ln(e.options,e.doc.modeOption),lo(e)}function lo(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,pa(e,100),e.state.modeGen++,e.curOp&&Mn(e)}function gs(e,t){return t.from.ch==0&&t.to.ch==0&&S(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ts(e,t,i,n){function r(ot){return i?i[ot]:null}function o(ot,it,dt){Ya(ot,it,dt,n),Be(ot,"change",ot,t)}function c(ot,it){for(var dt=[],St=ot;St<it;++St)dt.push(new Cr(w[St],r(St),n));return dt}var m=t.from,b=t.to,w=t.text,Z=ze(e,m.line),oe=ze(e,b.line),Re=S(w),Te=r(w.length-1),Pe=b.line-m.line;if(t.full)e.insert(0,c(0,w.length)),e.remove(w.length,e.size-w.length);else if(gs(e,t)){var Ue=c(0,w.length-1);o(oe,oe.text,Te),Pe&&e.remove(m.line,Pe),Ue.length&&e.insert(m.line,Ue)}else if(Z==oe)if(w.length==1)o(Z,Z.text.slice(0,m.ch)+Re+Z.text.slice(b.ch),Te);else{var Qe=c(1,w.length-1);Qe.push(new Cr(Re+Z.text.slice(b.ch),Te,n)),o(Z,Z.text.slice(0,m.ch)+w[0],r(0)),e.insert(m.line+1,Qe)}else if(w.length==1)o(Z,Z.text.slice(0,m.ch)+w[0]+oe.text.slice(b.ch),r(0)),e.remove(m.line+1,Pe);else{o(Z,Z.text.slice(0,m.ch)+w[0],r(0)),o(oe,Re+oe.text.slice(b.ch),Te);var nt=c(1,w.length-1);Pe>1&&e.remove(m.line+1,Pe-1),e.insert(m.line+1,nt)}Be(e,"change",e,t)}function ia(e,t,i){function n(r,o,c){if(r.linked)for(var m=0;m<r.linked.length;++m){var b=r.linked[m];if(b.doc==o)continue;var w=c&&b.sharedHist;if(i&&!w)continue;t(b.doc,w),n(b.doc,r,w)}}n(e,null,!0)}function vs(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Hi(e),Gr(e),bs(e),e.options.lineWrapping||Jr(e),e.options.mode=t.modeOption,Mn(e)}function bs(e){(e.doc.direction=="rtl"?M:H)(e.display.lineDiv,"CodeMirror-rtl")}function fl(e){Ki(e,function(){bs(e),Mn(e)})}function Lo(e){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function ns(e,t){var i={from:bi(t.from),to:wr(t),text:Zt(e,t.from,t.to)};return Es(e,i,t.from.line,t.to.line+1),ia(e,function(n){return Es(n,i,t.from.line,t.to.line+1)},!0),i}function _s(e){for(;e.length;){var t=S(e);if(t.ranges)e.pop();else break}}function pl(e,t){if(t)return _s(e.done),S(e.done);if(e.done.length&&!S(e.done).ranges)return S(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),S(e.done)}function ys(e,t,i,n){var r=e.history;r.undone.length=0;var o=+new Date,c,m;if((r.lastOp==n||r.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&r.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(c=pl(r,r.lastOp==n)))m=S(c.changes),lt(t.from,t.to)==0&<(t.from,m.to)==0?m.to=wr(t):c.changes.push(ns(e,t));else{var b=S(r.done);for((!b||!b.ranges)&&ko(e.sel,r.done),c={changes:[ns(e,t)],generation:r.generation},r.done.push(c);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(i),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=o,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=t.origin,m||Bt(e,"historyAdded")}function ml(e,t,i,n){var r=t.charAt(0);return r=="*"||r=="+"&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function gl(e,t,i,n){var r=e.history,o=n&&n.origin;i==r.lastSelOp||o&&r.lastSelOrigin==o&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==o||ml(e,o,S(r.done),t))?r.done[r.done.length-1]=t:ko(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=o,r.lastSelOp=i,n&&n.clearRedo!==!1&&_s(r.undone)}function ko(e,t){var i=S(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Es(e,t,i,n){var r=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(c){c.markedSpans&&((r||(r=t["spans_"+e.id]={}))[o]=c.markedSpans),++o})}function vl(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function bl(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var n=[],r=0;r<t.text.length;++r)n.push(vl(i[r]));return n}function As(e,t){var i=bl(e,t),n=Ur(e,t);if(!i)return n;if(!n)return i;for(var r=0;r<i.length;++r){var o=i[r],c=n[r];if(o&&c){e:for(var m=0;m<c.length;++m){for(var b=c[m],w=0;w<o.length;++w)if(o[w].marker==b.marker)continue e;o.push(b)}}else c&&(i[r]=c)}return i}function Pa(e,t,i){for(var n=[],r=0;r<e.length;++r){var o=e[r];if(o.ranges){n.push(i?Gi.prototype.deepCopy.call(o):o);continue}var c=o.changes,m=[];n.push({changes:m});for(var b=0;b<c.length;++b){var w=c[b],Z=void 0;if(m.push({from:w.from,to:w.to,text:w.text}),t)for(var oe in w)(Z=oe.match(/^spans_(\d+)$/))&&(he(t,Number(Z[1]))>-1&&(S(m)[oe]=w[oe],delete w[oe]))}}return n}function is(e,t,i,n){if(n){var r=e.anchor;if(i){var o=lt(t,r)<0;o!=lt(i,r)<0?(r=t,t=i):o!=lt(t,i)<0&&(t=i)}return new _n(r,t)}else return new _n(i||t,t)}function Po(e,t,i,n,r){r==null&&(r=e.cm&&(e.cm.display.shift||e.extend)),Ui(e,new Gi([is(e.sel.primary(),t,i,r)],0),n)}function Os(e,t,i){for(var n=[],r=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)n[o]=is(e.sel.ranges[o],t[o],null,r);var c=pr(e.cm,n,e.sel.primIndex);Ui(e,c,i)}function rs(e,t,i,n){var r=e.sel.ranges.slice(0);r[t]=i,Ui(e,pr(e.cm,r,e.sel.primIndex),n)}function ws(e,t,i,n){Ui(e,Or(t,i),n)}function _l(e,t,i){var n={ranges:t.ranges,update:function(r){this.ranges=[];for(var o=0;o<r.length;o++)this.ranges[o]=new _n(et(e,r[o].anchor),et(e,r[o].head))},origin:i&&i.origin};return Bt(e,"beforeSelectionChange",e,n),e.cm&&Bt(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?pr(e.cm,n.ranges,n.ranges.length-1):t}function Ts(e,t,i){var n=e.history.done,r=S(n);r&&r.ranges?(n[n.length-1]=t,jo(e,t,i)):Ui(e,t,i)}function Ui(e,t,i){jo(e,t,i),gl(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function jo(e,t,i){(It(e,"beforeSelectionChange")||e.cm&&It(e.cm,"beforeSelectionChange"))&&(t=_l(e,t,i));var n=i&&i.bias||(lt(t.primary().head,e.sel.primary().head)<0?-1:1);Ss(e,xs(e,t,n,!0)),!(i&&i.scroll===!1)&&e.cm&&qr(e.cm)}function Ss(e,t){if(t.equals(e.sel))return;e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Wt(e.cm)),Be(e,"cursorActivity",e)}function Cs(e){Ss(e,xs(e,e.sel,null,!1))}function xs(e,t,i,n){for(var r,o=0;o<t.ranges.length;o++){var c=t.ranges[o],m=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],b=Uo(e,c.anchor,m&&m.anchor,i,n),w=Uo(e,c.head,m&&m.head,i,n);(r||b!=c.anchor||w!=c.head)&&(r||(r=t.ranges.slice(0,o)),r[o]=new _n(b,w))}return r?pr(e.cm,r,t.primIndex):t}function ja(e,t,i,n,r){var o=ze(e,t.line);if(o.markedSpans)for(var c=0;c<o.markedSpans.length;++c){var m=o.markedSpans[c],b=m.marker,w="selectLeft"in b?!b.selectLeft:b.inclusiveLeft,Z="selectRight"in b?!b.selectRight:b.inclusiveRight;if((m.from==null||(w?m.from<=t.ch:m.from<t.ch))&&(m.to==null||(Z?m.to>=t.ch:m.to>t.ch))){if(r&&(Bt(b,"beforeCursorEnter"),b.explicitlyCleared))if(o.markedSpans){--c;continue}else break;if(!b.atomic)continue;if(i){var oe=b.find(n<0?1:-1),Re=void 0;if((n<0?Z:w)&&(oe=Rs(e,oe,-n,oe&&oe.line==t.line?o:null)),oe&&oe.line==t.line&&(Re=lt(oe,i))&&(n<0?Re<0:Re>0))return ja(e,oe,t,n,r)}var Te=b.find(n<0?-1:1);return(n<0?w:Z)&&(Te=Rs(e,Te,n,Te.line==t.line?o:null)),Te?ja(e,Te,t,n,r):null}}return t}function Uo(e,t,i,n,r){var o=n||1,c=ja(e,t,i,o,r)||!r&&ja(e,t,i,o,!0)||ja(e,t,i,-o,r)||!r&&ja(e,t,i,-o,!0);return c||(e.cantEdit=!0,je(e.first,0))}function Rs(e,t,i,n){return i<0&&t.ch==0?t.line>e.first?et(e,je(t.line-1)):null:i>0&&t.ch==(n||ze(e,t.line)).text.length?t.line<e.first+e.size-1?je(t.line+1,0):null:new je(t.line,t.ch+i)}function Is(e){e.setSelection(je(e.firstLine(),0),je(e.lastLine()),be)}function Ns(e,t,i){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return i&&(n.update=function(r,o,c,m){r&&(n.from=et(e,r)),o&&(n.to=et(e,o)),c&&(n.text=c),m!==void 0&&(n.origin=m)}),Bt(e,"beforeChange",e,n),e.cm&&Bt(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Ua(e,t,i){if(e.cm){if(!e.cm.curOp)return ui(e.cm,Ua)(e,t,i);if(e.cm.state.suppressEdits)return}if((It(e,"beforeChange")||e.cm&&It(e.cm,"beforeChange"))&&(t=Ns(e,t,!0),!t))return;var n=Ci&&!i&&En(e,t.from,t.to);if(n)for(var r=n.length-1;r>=0;--r)Ds(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text,origin:t.origin});else Ds(e,t)}function Ds(e,t){if(t.text.length==1&&t.text[0]==""&<(t.from,t.to)==0)return;var i=ka(e,t);ys(e,t,i,e.cm?e.cm.curOp.id:NaN),uo(e,t,i,Ur(e,t));var n=[];ia(e,function(r,o){!o&&he(n,r.history)==-1&&(Ps(r.history,t),n.push(r.history)),uo(r,t,null,Ur(r,t))})}function Fo(e,t,i){var n=e.cm&&e.cm.state.suppressEdits;if(n&&!i)return;for(var r=e.history,o,c=e.sel,m=t=="undo"?r.done:r.undone,b=t=="undo"?r.undone:r.done,w=0;w<m.length&&!(o=m[w],i?o.ranges&&!o.equals(e.sel):!o.ranges);w++);if(w==m.length)return;for(r.lastOrigin=r.lastSelOrigin=null;;)if(o=m.pop(),o.ranges){if(ko(o,b),i&&!o.equals(e.sel)){Ui(e,o,{clearRedo:!1});return}c=o}else if(n){m.push(o);return}else break;var Z=[];ko(c,b),b.push({changes:Z,generation:r.generation}),r.generation=o.generation||++r.maxGeneration;for(var oe=It(e,"beforeChange")||e.cm&&It(e.cm,"beforeChange"),Re=function(Ue){var Qe=o.changes[Ue];if(Qe.origin=t,oe&&!Ns(e,Qe,!1))return m.length=0,{};Z.push(ns(e,Qe));var nt=Ue?ka(e,Qe):S(m);uo(e,Qe,nt,As(e,Qe)),!Ue&&e.cm&&e.cm.scrollIntoView({from:Qe.from,to:wr(Qe)});var ot=[];ia(e,function(it,dt){!dt&&he(ot,it.history)==-1&&(Ps(it.history,Qe),ot.push(it.history)),uo(it,Qe,null,As(it,Qe))})},Te=o.changes.length-1;Te>=0;--Te){var Pe=Re(Te);if(Pe)return Pe.v}}function Ms(e,t){if(t==0)return;if(e.first+=t,e.sel=new Gi(Y(e.sel.ranges,function(r){return new _n(je(r.anchor.line+t,r.anchor.ch),je(r.head.line+t,r.head.ch))}),e.sel.primIndex),e.cm){Mn(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;n<i.viewTo;n++)$n(e.cm,n,"gutter")}}function uo(e,t,i,n){if(e.cm&&!e.cm.curOp)return ui(e.cm,uo)(e,t,i,n);if(t.to.line<e.first){Ms(e,t.text.length-1-(t.to.line-t.from.line));return}if(t.from.line>e.lastLine())return;if(t.from.line<e.first){var r=t.text.length-1-(e.first-t.from.line);Ms(e,r),t={from:je(e.first,0),to:je(t.to.line+r,t.to.ch),text:[S(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:je(o,ze(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Zt(e,t.from,t.to),i||(i=ka(e,t)),e.cm?yl(e.cm,t,n):ts(e,t,n),jo(e,i,be),e.cantEdit&&Uo(e,je(e.firstLine(),0))&&(e.cantEdit=!1)}function yl(e,t,i){var n=e.doc,r=e.display,o=t.from,c=t.to,m=!1,b=o.line;e.options.lineWrapping||(b=Nt(Mi(ze(n,o.line))),n.iter(b,c.line+1,function(Te){if(Te==r.maxLine)return m=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Wt(e),ts(n,t,i,cr(e)),e.options.lineWrapping||(n.iter(b,o.line+t.text.length,function(Te){var Pe=Fr(Te);Pe>r.maxLineLength&&(r.maxLine=Te,r.maxLineLength=Pe,r.maxLineChanged=!0,m=!1)}),m&&(e.curOp.updateMaxLine=!0)),tn(n,o.line),pa(e,400);var w=t.text.length-(c.line-o.line)-1;t.full?Mn(e):o.line==c.line&&t.text.length==1&&!gs(e.doc,t)?$n(e,o.line,"text"):Mn(e,o.line,c.line+1,w);var Z=It(e,"changes"),oe=It(e,"change");if(oe||Z){var Re={from:o,to:c,text:t.text,removed:t.removed,origin:t.origin};oe&&Be(e,"change",e,Re),Z&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Re)}e.display.selForContextMenu=null}function Fa(e,t,i,n,r){var o;n||(n=i),lt(n,i)<0&&(o=[n,i],i=o[0],n=o[1]),typeof t=="string"&&(t=e.splitLines(t)),Ua(e,{from:i,to:n,text:t,origin:r})}function Ls(e,t,i,n){i<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function ks(e,t,i,n){for(var r=0;r<e.length;++r){var o=e[r],c=!0;if(o.ranges){o.copied||(o=e[r]=o.deepCopy(),o.copied=!0);for(var m=0;m<o.ranges.length;m++)Ls(o.ranges[m].anchor,t,i,n),Ls(o.ranges[m].head,t,i,n);continue}for(var b=0;b<o.changes.length;++b){var w=o.changes[b];if(i<w.from.line)w.from=je(w.from.line+n,w.from.ch),w.to=je(w.to.line+n,w.to.ch);else if(t<=w.to.line){c=!1;break}}c||(e.splice(0,r+1),r=0)}}function Ps(e,t){var i=t.from.line,n=t.to.line,r=t.text.length-(n-i)-1;ks(e.done,i,n,r),ks(e.undone,i,n,r)}function co(e,t,i,n){var r=t,o=t;return typeof t=="number"?o=ze(e,Rt(e,t)):r=Nt(t),r==null?null:(n(o,r)&&e.cm&&$n(e.cm,r,i),o)}function ho(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}ho.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,n=e+t;i<n;++i){var r=this.lines[i];this.height-=r.height,ua(r),Be(r,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,i){for(var n=e+t;e<n;++e)if(i(this.lines[e]))return!0}};function fo(e){this.children=e;for(var t=0,i=0,n=0;n<e.length;++n){var r=e[n];t+=r.chunkSize(),i+=r.height,r.parent=this}this.size=t,this.height=i,this.parent=null}fo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var n=this.children[i],r=n.chunkSize();if(e<r){var o=Math.min(t,r-e),c=n.height;if(n.removeInner(e,o),this.height-=c-n.height,r==o&&(this.children.splice(i--,1),n.parent=null),(t-=o)==0)break;e=0}else e-=r}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ho))){var m=[];this.collapse(m),this.children=[new ho(m)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,i){this.size+=t.length,this.height+=i;for(var n=0;n<this.children.length;++n){var r=this.children[n],o=r.chunkSize();if(e<=o){if(r.insertInner(e,t,i),r.lines&&r.lines.length>50){for(var c=r.lines.length%25+25,m=c;m<r.lines.length;){var b=new ho(r.lines.slice(m,m+=25));r.height-=b.height,this.children.splice(++n,0,b),b.parent=this}r.lines=r.lines.slice(0,c),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(this.children.length<=10)return;var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new fo(t);if(e.parent){e.size-=i.size,e.height-=i.height;var r=he(e.parent.children,e);e.parent.children.splice(r+1,0,i)}else{var n=new fo(e.children);n.parent=e,e.children=[n,i],e=n}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()},iterN:function(e,t,i){for(var n=0;n<this.children.length;++n){var r=this.children[n],o=r.chunkSize();if(e<o){var c=Math.min(t,o-e);if(r.iterN(e,c,i))return!0;if((t-=c)==0)break;e=0}else e-=o}}};var po=function(e,t,i){if(i)for(var n in i)i.hasOwnProperty(n)&&(this[n]=i[n]);this.doc=e,this.node=t};po.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,n=Nt(i);if(n==null||!t)return;for(var r=0;r<t.length;++r)t[r]==this&&t.splice(r--,1);t.length||(i.widgets=null);var o=mi(this);kt(i,Math.max(0,i.height-o)),e&&(Ki(e,function(){js(e,i,-o),$n(e,n,"widget")}),Be(e,"lineWidgetCleared",e,this,n))},po.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,n=this.line;this.height=null;var r=mi(this)-t;if(!r)return;Xi(this.doc,n)||kt(n,n.height+r),i&&Ki(i,function(){i.curOp.forceUpdate=!0,js(i,n,r),Be(i,"lineWidgetChanged",i,e,Nt(n))})},pn(po);function js(e,t,i){Zi(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&to(e,i)}function El(e,t,i,n){var r=new po(e,i,n),o=e.cm;return o&&r.noHScroll&&(o.display.alignWidgets=!0),co(e,t,"widget",function(c){var m=c.widgets||(c.widgets=[]);if(r.insertAt==null?m.push(r):m.splice(Math.min(m.length-1,Math.max(0,r.insertAt)),0,r),r.line=c,o&&!Xi(e,c)){var b=Zi(c)<e.scrollTop;kt(c,c.height+mi(r)),b&&to(o,r.height),o.curOp.forceUpdate=!0}return!0}),o&&Be(o,"lineWidgetAdded",o,r,typeof t=="number"?t:Nt(t)),r}var Us=0,ra=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Us};ra.prototype.clear=function(){if(this.explicitlyCleared)return;var e=this.doc.cm,t=e&&!e.curOp;if(t&&Lr(e),It(this,"clear")){var i=this.find();i&&Be(this,"clear",i.from,i.to)}for(var n=null,r=null,o=0;o<this.lines.length;++o){var c=this.lines[o],m=lr(c.markedSpans,this);e&&!this.collapsed?$n(e,Nt(c),"text"):e&&(m.to!=null&&(r=Nt(c)),m.from!=null&&(n=Nt(c))),c.markedSpans=jr(c.markedSpans,m),m.from==null&&this.collapsed&&!Xi(this.doc,c)&&e&&kt(c,ri(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var b=0;b<this.lines.length;++b){var w=Mi(this.lines[b]),Z=Fr(w);Z>e.display.maxLineLength&&(e.display.maxLine=w,e.display.maxLineLength=Z,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Mn(e,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Cs(e.doc)),e&&Be(e,"markerCleared",e,this,n,r),t&&Kr(e),this.parent&&this.parent.clear()},ra.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,n,r=0;r<this.lines.length;++r){var o=this.lines[r],c=lr(o.markedSpans,this);if(c.from!=null&&(i=je(t?o:Nt(o),c.from),e==-1))return i;if(c.to!=null&&(n=je(t?o:Nt(o),c.to),e==1))return n}return i&&{from:i,to:n}},ra.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,n=this.doc.cm;if(!t||!n)return;Ki(n,function(){var r=t.line,o=Nt(t.line),c=Ee(n,o);if(c&&(Yt(c),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Xi(i.doc,r)&&i.height!=null){var m=i.height;i.height=null;var b=mi(i)-m;b&&kt(r,r.height+b)}Be(n,"markerChanged",n,e)})},ra.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||he(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ra.prototype.detachLine=function(e){if(this.lines.splice(he(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},pn(ra);function Ba(e,t,i,n,r){if(n&&n.shared)return Al(e,t,i,n,r);if(e.cm&&!e.cm.curOp)return ui(e.cm,Ba)(e,t,i,n,r);var o=new ra(e,r),c=lt(t,i);if(n&&l(n,o,!1),c>0||c==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=z("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(yr(e,t.line,t,i,o)||t.line!=i.line&&yr(e,i.line,t,i,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");sr()}o.addToHistory&&ys(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var m=t.line,b=e.cm,w;if(e.iter(m,i.line+1,function(oe){b&&o.collapsed&&!b.options.lineWrapping&&Mi(oe)==b.display.maxLine&&(w=!0),o.collapsed&&m!=t.line&&kt(oe,0),_a(oe,new pi(o,m==t.line?t.ch:null,m==i.line?i.ch:null)),++m}),o.collapsed&&e.iter(t.line,i.line+1,function(oe){Xi(e,oe)&&kt(oe,0)}),o.clearOnEnter&&qe(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Qn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Us,o.atomic=!0),b){if(w&&(b.curOp.updateMaxLine=!0),o.collapsed)Mn(b,t.line,i.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var Z=t.line;Z<=i.line;Z++)$n(b,Z,"text");o.atomic&&Cs(b.doc),Be(b,"markerAdded",b,o)}return o}var mo=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};mo.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Be(this,"clear")},mo.prototype.find=function(e,t){return this.primary.find(e,t)},pn(mo);function Al(e,t,i,n,r){n=l(n),n.shared=!1;var o=[Ba(e,t,i,n,r)],c=o[0],m=n.widgetNode;return ia(e,function(b){m&&(n.widgetNode=m.cloneNode(!0)),o.push(Ba(b,et(b,t),et(b,i),n,r));for(var w=0;w<b.linked.length;++w)if(b.linked[w].isParent)return;c=S(o)}),new mo(o,c)}function Fs(e){return e.findMarks(je(e.first,0),e.clipPos(je(e.lastLine())),function(t){return t.parent})}function Ol(e,t){for(var i=0;i<t.length;i++){var n=t[i],r=n.find(),o=e.clipPos(r.from),c=e.clipPos(r.to);if(lt(o,c)){var m=Ba(e,o,c,n.primary,n.primary.type);n.markers.push(m),m.parent=n}}}function wl(e){for(var t=function(n){var r=e[n],o=[r.primary.doc];ia(r.primary.doc,function(b){return o.push(b)});for(var c=0;c<r.markers.length;c++){var m=r.markers[c];he(o,m.doc)==-1&&(m.parent=null,r.markers.splice(c--,1))}},i=0;i<e.length;i++)t(i)}var Tl=0,$i=function(e,t,i,n,r){if(!(this instanceof $i))return new $i(e,t,i,n,r);i==null&&(i=0),fo.call(this,[new ho([new Cr("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var o=je(i,0);this.sel=Or(o),this.history=new Lo(null),this.id=++Tl,this.modeOption=t,this.lineSep=n,this.direction=r=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ts(this,{from:o,to:o,text:e}),Ui(this,Or(o),be)};$i.prototype=Me(fo.prototype,{constructor:$i,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,n=0;n<t.length;++n)i+=t[n].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ot(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:ci(function(e){var t=je(this.first,0),i=this.first+this.size-1;Ua(this,{from:t,to:je(i,ze(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&$r(this.cm,0,0),Ui(this,Or(t),be)}),replaceRange:function(e,t,i,n){t=et(this,t),i=i?et(this,i):t,Fa(this,e,t,i,n)},getRange:function(e,t,i){var n=Zt(this,et(this,e),et(this,t));return i===!1?n:n.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(un(this,e))return ze(this,e)},getLineNumber:function(e){return Nt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=ze(this,e)),Mi(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return et(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ci(function(e,t,i){ws(this,et(this,typeof e=="number"?je(e,t||0):e),null,i)}),setSelection:ci(function(e,t,i){ws(this,et(this,e),et(this,t||e),i)}),extendSelection:ci(function(e,t,i){Po(this,et(this,e),t&&et(this,t),i)}),extendSelections:ci(function(e,t){Os(this,bt(this,e),t)}),extendSelectionsBy:ci(function(e,t){var i=Y(this.sel.ranges,e);Os(this,bt(this,i),t)}),setSelections:ci(function(e,t,i){if(!e.length)return;for(var n=[],r=0;r<e.length;r++)n[r]=new _n(et(this,e[r].anchor),et(this,e[r].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Ui(this,pr(this.cm,n,t),i)}),addSelection:ci(function(e,t,i){var n=this.sel.ranges.slice(0);n.push(new _n(et(this,e),et(this,t||e))),Ui(this,pr(this.cm,n,n.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,n=0;n<t.length;n++){var r=Zt(this,t[n].from(),t[n].to());i=i?i.concat(r):r}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,n=0;n<i.length;n++){var r=Zt(this,i[n].from(),i[n].to());e!==!1&&(r=r.join(e||this.lineSeparator())),t[n]=r}return t},replaceSelection:function(e,t,i){for(var n=[],r=0;r<this.sel.ranges.length;r++)n[r]=e;this.replaceSelections(n,t,i||"+input")},replaceSelections:ci(function(e,t,i){for(var n=[],r=this.sel,o=0;o<r.ranges.length;o++){var c=r.ranges[o];n[o]={from:c.from(),to:c.to(),text:this.splitLines(e[o]),origin:i}}for(var m=t&&t!="end"&&Mo(this,n,t),b=n.length-1;b>=0;b--)Ua(this,n[b]);m?Ts(this,m):this.cm&&qr(this.cm)}),undo:ci(function(){Fo(this,"undo")}),redo:ci(function(){Fo(this,"redo")}),undoSelection:ci(function(){Fo(this,"undo",!0)}),redoSelection:ci(function(){Fo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var r=0;r<e.undone.length;r++)e.undone[r].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new Lo(this.history.maxGeneration),ia(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Pa(this.history.done),undone:Pa(this.history.undone)}},setHistory:function(e){var t=this.history=new Lo(this.history.maxGeneration);t.done=Pa(e.done.slice(0),null,!0),t.undone=Pa(e.undone.slice(0),null,!0)},setGutterMarker:ci(function(e,t,i){return co(this,e,"gutter",function(n){var r=n.gutterMarkers||(n.gutterMarkers={});return r[t]=i,!i&&U(r)&&(n.gutterMarkers=null),!0})}),clearGutter:ci(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&co(t,i,"gutter",function(){return i.gutterMarkers[e]=null,U(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!un(this,e))return null;if(t=e,e=ze(this,e),!e)return null}else if(t=Nt(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ci(function(e,t,i){return co(this,e,t=="gutter"?"gutter":"class",function(n){var r=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[r])n[r]=i;else{if(te(i).test(n[r]))return!1;n[r]+=" "+i}return!0})}),removeLineClass:ci(function(e,t,i){return co(this,e,t=="gutter"?"gutter":"class",function(n){var r=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",o=n[r];if(o)if(i==null)n[r]=null;else{var c=o.match(te(i));if(!c)return!1;var m=c.index+c[0].length;n[r]=o.slice(0,c.index)+(!c.index||m==o.length?"":" ")+o.slice(m)||null}else return!1;return!0})}),addLineWidget:ci(function(e,t,i){return El(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Ba(this,et(this,e),et(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=et(this,e),Ba(this,e,e,i,"bookmark")},findMarksAt:function(e){e=et(this,e);var t=[],i=ze(this,e.line).markedSpans;if(i)for(var n=0;n<i.length;++n){var r=i[n];(r.from==null||r.from<=e.ch)&&(r.to==null||r.to>=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,i){e=et(this,e),t=et(this,t);var n=[],r=e.line;return this.iter(e.line,t.line+1,function(o){var c=o.markedSpans;if(c)for(var m=0;m<c.length;m++){var b=c[m];!(b.to!=null&&r==e.line&&e.ch>=b.to||b.from==null&&r!=e.line||b.from!=null&&r==t.line&&b.from>=t.ch)&&(!i||i(b.marker))&&n.push(b.marker.parent||b.marker)}++r}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;n<i.length;++n)i[n].from!=null&&e.push(i[n].marker)}),e},posFromIndex:function(e){var t,i=this.first,n=this.lineSeparator().length;return this.iter(function(r){var o=r.text.length+n;if(o>e)return t=e,!0;e-=o,++i}),et(this,je(i,t))},indexFromPos:function(e){e=et(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+i}),t},copy:function(e){var t=new $i(Ot(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var n=new $i(Ot(this,t,i),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ol(n,Fs(this)),n},unlinkDoc:function(e){if(e instanceof ei&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc!=e)continue;this.linked.splice(t,1),e.unlinkDoc(this),wl(Fs(this));break}if(e.history==this.history){var n=[e.id];ia(e,function(r){return n.push(r.id)},!0),e.history=new Lo(null),e.history.done=Pa(this.history.done,n),e.history.undone=Pa(this.history.undone,n)}},iterLinkedDocs:function(e){ia(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Si(e)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:ci(function(e){if(e!="rtl"&&(e="ltr"),e==this.direction)return;this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&fl(this.cm)})}),$i.prototype.eachLine=$i.prototype.iter;var Bs=0;function Sl(e){var t=this;if(Ws(t),ut(t,e)||Er(t.display,e))return;en(e),ue&&(Bs=+new Date);var i=yi(t,e,!0),n=e.dataTransfer.files;if(!i||t.isReadOnly())return;if(n&&n.length&&window.FileReader&&window.File)for(var r=n.length,o=Array(r),c=0,m=function(){++c==r&&ui(t,function(){i=et(t.doc,i);var Te={from:i,to:i,text:t.doc.splitLines(o.filter(function(Pe){return Pe!=null}).join(t.doc.lineSeparator())),origin:"paste"};Ua(t.doc,Te),Ts(t.doc,Or(et(t.doc,i),et(t.doc,wr(Te))))})()},b=function(Te,Pe){if(t.options.allowDropFileTypes&&he(t.options.allowDropFileTypes,Te.type)==-1){m();return}var Ue=new FileReader;Ue.onerror=function(){return m()},Ue.onload=function(){var Qe=Ue.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Qe)){m();return}o[Pe]=Qe,m()},Ue.readAsText(Te)},w=0;w<n.length;w++)b(n[w],w);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var Z=e.dataTransfer.getData("Text");if(Z){var oe;if(t.state.draggingText&&!t.state.draggingText.copy&&(oe=t.listSelections()),jo(t.doc,Or(i,i)),oe)for(var Re=0;Re<oe.length;++Re)Fa(t.doc,"",oe[Re].anchor,oe[Re].head,"drag");t.replaceSelection(Z,"around","paste"),t.display.input.focus()}}catch(Te){}}}function Cl(e,t){if(ue&&(!e.state.draggingText||+new Date-Bs<100)){On(t);return}if(ut(e,t)||Er(e.display,t))return;if(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f){var i=ge("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),E&&i.parentNode.removeChild(i)}}function xl(e,t){var i=yi(e,t);if(!i)return;var n=document.createDocumentFragment();Nr(e,i,n),e.display.dragCursor||(e.display.dragCursor=ge("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ye(e.display.dragCursor,n)}function Ws(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Hs(e){if(!document.getElementsByClassName)return;for(var t=document.getElementsByClassName("CodeMirror"),i=[],n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&i.push(r)}i.length&&i[0].operation(function(){for(var o=0;o<i.length;o++)e(i[o])})}var Ks=!1;function Rl(){if(Ks)return;Il(),Ks=!0}function Il(){var e;qe(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Hs(Nl)},100))}),qe(window,"blur",function(){return Hs(Zr)})}function Nl(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var aa={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},go=0;go<10;go++)aa[go+48]=aa[go+96]=String(go);for(var Bo=65;Bo<=90;Bo++)aa[Bo]=String.fromCharCode(Bo);for(var vo=1;vo<=12;vo++)aa[vo+111]=aa[vo+63235]="F"+vo;var Qr={};Qr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Qr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Qr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Qr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Qr.default=_?Qr.macDefault:Qr.pcDefault;function Dl(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,n,r,o,c=0;c<t.length-1;c++){var m=t[c];if(/^(cmd|meta|m)$/i.test(m))o=!0;else if(/^a(lt)?$/i.test(m))i=!0;else if(/^(c|ctrl|control)$/i.test(m))n=!0;else if(/^s(hift)?$/i.test(m))r=!0;else throw new Error("Unrecognized modifier name: "+m)}return i&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ml(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(n=="..."){delete e[i];continue}for(var r=Y(i.split(" "),Dl),o=0;o<r.length;o++){var c=void 0,m=void 0;o==r.length-1?(m=r.join(" "),c=n):(m=r.slice(0,o+1).join(" "),c="...");var b=t[m];if(!b)t[m]=c;else if(b!=c)throw new Error("Inconsistent bindings for "+m)}delete e[i]}for(var w in t)e[w]=t[w];return e}function Wa(e,t,i,n){t=Wo(t);var r=t.call?t.call(e,n):t[e];if(r===!1)return"nothing";if(r==="...")return"multi";if(r!=null&&i(r))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Wa(e,t.fallthrough,i,n);for(var o=0;o<t.fallthrough.length;o++){var c=Wa(e,t.fallthrough[o],i,n);if(c)return c}}}function zs(e){var t=typeof e=="string"?e:aa[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Gs(e,t,i){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(J?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(J?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function Qs(e,t){if(E&&e.keyCode==34&&e.char)return!1;var i=aa[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),Gs(i,e,t))}function Wo(e){return typeof e=="string"?Qr[e]:e}function Ha(e,t){for(var i=e.doc.sel.ranges,n=[],r=0;r<i.length;r++){for(var o=t(i[r]);n.length&<(o.from,S(n).to)<=0;){var c=n.pop();if(lt(c.from,o.from)<0){o.from=c.from;break}}n.push(o)}Ki(e,function(){for(var m=n.length-1;m>=0;m--)Fa(e.doc,"",n[m].from,n[m].to,"+delete");qr(e)})}function as(e,t,i){var n=ke(e.text,t+i,i);return n<0||n>e.text.length?null:n}function os(e,t,i){var n=as(e,t.ch,i);return n==null?null:new je(t.line,n,i<0?"after":"before")}function ss(e,t,i,n,r){if(e){t.doc.direction=="rtl"&&(r=-r);var o=At(i,t.doc.direction);if(o){var c=r<0?S(o):o[0],m=r<0==(c.level==1),b=m?"after":"before",w;if(c.level>0||t.doc.direction=="rtl"){var Z=fe(t,i);w=r<0?i.text.length-1:0;var oe=Se(t,Z,w).top;w=$e(function(Re){return Se(t,Z,Re).top==oe},r<0==(c.level==1)?c.from:c.to-1,w),b=="before"&&(w=as(i,w,1))}else w=r<0?c.to:c.from;return new je(n,w,b)}}return new je(n,r<0?i.text.length:0,r<0?"before":"after")}function Ll(e,t,i,n){var r=At(t,e.doc.direction);if(!r)return os(t,i,n);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var o=Ze(r,i.ch,i.sticky),c=r[o];if(e.doc.direction=="ltr"&&c.level%2==0&&(n>0?c.to>i.ch:c.from<i.ch))return os(t,i,n);var m=function(nt,ot){return as(t,nt instanceof je?nt.ch:nt,ot)},b,w=function(nt){return e.options.lineWrapping?(b=b||fe(e,t),ft(e,t,b,nt)):{begin:0,end:t.text.length}},Z=w(i.sticky=="before"?m(i,-1):i.ch);if(e.doc.direction=="rtl"||c.level==1){var oe=c.level==1==n<0,Re=m(i,oe?1:-1);if(Re!=null&&(oe?Re<=c.to&&Re<=Z.end:Re>=c.from&&Re>=Z.begin)){var Te=oe?"before":"after";return new je(i.line,Re,Te)}}var Pe=function(nt,ot,it){for(var dt=function(Wn,Ii){return Ii?new je(i.line,m(Wn,1),"before"):new je(i.line,Wn,"after")};nt>=0&&nt<r.length;nt+=ot){var St=r[nt],vt=ot>0==(St.level!=1),Xt=vt?it.begin:m(it.end,-1);if(St.from<=Xt&&Xt<St.to)return dt(Xt,vt);if(Xt=vt?St.from:m(St.to,-1),it.begin<=Xt&&Xt<it.end)return dt(Xt,vt)}},Ue=Pe(o+n,n,Z);if(Ue)return Ue;var Qe=n>0?Z.end:m(Z.begin,-1);return Qe!=null&&!(n>0&&Qe==t.text.length)&&(Ue=Pe(n>0?0:r.length-1,n,w(Qe)),Ue)?Ue:null}var bo={selectAll:Is,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),be)},killLine:function(e){return Ha(e,function(t){if(t.empty()){var i=ze(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:je(t.head.line+1,0)}:{from:t.head,to:je(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Ha(e,function(t){return{from:je(t.from().line,0),to:et(e.doc,je(t.to().line+1,0))}})},delLineLeft:function(e){return Ha(e,function(t){return{from:je(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Ha(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return Ha(e,function(t){var i=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(je(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(je(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Ys(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return Vs(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return kl(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},$)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},$)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:i},"div");return n.ch<e.getLine(n.line).search(/\S/)?Vs(e,t.head):n},$)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],i=e.listSelections(),n=e.options.tabSize,r=0;r<i.length;r++){var o=i[r].from(),c=C(e.getLine(o.line),o.ch,n);t.push(Oe(n-c%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ki(e,function(){for(var t=e.listSelections(),i=[],n=0;n<t.length;n++){if(!t[n].empty())continue;var r=t[n].head,o=ze(e.doc,r.line).text;if(o){if(r.ch==o.length&&(r=new je(r.line,r.ch-1)),r.ch>0)r=new je(r.line,r.ch+1),e.replaceRange(o.charAt(r.ch-1)+o.charAt(r.ch-2),je(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var c=ze(e.doc,r.line-1).text;c&&(r=new je(r.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+c.charAt(c.length-1),je(r.line-1,c.length-1),r,"+transpose"))}}i.push(new _n(r,r))}e.setSelections(i)})},newlineAndIndent:function(e){return Ki(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);qr(e)})},openLine:function(e){return e.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Ys(e,t){var i=ze(e.doc,t),n=Mi(i);return n!=i&&(t=Nt(n)),ss(!0,e,n,t,1)}function kl(e,t){var i=ze(e.doc,t),n=ya(i);return n!=i&&(t=Nt(n)),ss(!0,e,i,t,-1)}function Vs(e,t){var i=Ys(e,t.line),n=ze(e.doc,i.line),r=At(n,e.doc.direction);if(!r||r[0].level==0){var o=Math.max(i.ch,n.text.search(/\S/)),c=t.line==i.line&&t.ch<=o&&t.ch;return je(i.line,c?0:o,i.sticky)}return i}function Ho(e,t,i){if(typeof t=="string"&&(t=bo[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),r=t(e)!=Ae}finally{e.display.shift=n,e.state.suppressEdits=!1}return r}function Pl(e,t,i){for(var n=0;n<e.state.keyMaps.length;n++){var r=Wa(t,e.state.keyMaps[n],i,e);if(r)return r}return e.options.extraKeys&&Wa(t,e.options.extraKeys,i,e)||Wa(t,e.options.keyMap,i,e)}var jl=new D;function _o(e,t,i,n){var r=e.state.keySeq;if(r){if(zs(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:jl.set(50,function(){e.state.keySeq==r&&(e.state.keySeq=null,e.display.input.reset())}),Js(e,r+" "+t,i,n))return!0}return Js(e,t,i,n)}function Js(e,t,i,n){var r=Pl(e,t,n);return r=="multi"&&(e.state.keySeq=t),r=="handled"&&Be(e,"keyHandled",e,t,i),(r=="handled"||r=="multi")&&(en(i),Ei(e)),!!r}function Xs(e,t){var i=Qs(t,!0);return i?t.shiftKey&&!e.state.keySeq?_o(e,"Shift-"+i,t,function(n){return Ho(e,n,!0)})||_o(e,i,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return Ho(e,n)}):_o(e,i,t,function(n){return Ho(e,n)}):!1}function Ul(e,t,i){return _o(e,"'"+i+"'",t,function(n){return Ho(e,n,!0)})}var ls=null;function Zs(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(t.curOp.focus=xe(),ut(t,e))return;ue&&se<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var n=Xs(t,e);E&&(ls=n?i:null,!n&&i==88&&!mr&&(_?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),Ie&&!_&&!n&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&Fl(t)}function Fl(e){var t=e.display.lineDiv;M(t,"CodeMirror-crosshair");function i(n){(n.keyCode==18||!n.altKey)&&(H(t,"CodeMirror-crosshair"),xn(document,"keyup",i),xn(document,"mouseover",i))}qe(document,"keyup",i),qe(document,"mouseover",i)}function qs(e){e.keyCode==16&&(this.doc.sel.shift=!1),ut(this,e)}function $s(e){var t=this;if(e.target&&e.target!=t.display.input.getField())return;if(Er(t.display,e)||ut(t,e)||e.ctrlKey&&!e.altKey||_&&e.metaKey)return;var i=e.keyCode,n=e.charCode;if(E&&i==ls){ls=null,en(e);return}if(E&&(!e.which||e.which<10)&&Xs(t,e))return;var r=String.fromCharCode(n==null?i:n);if(r=="\b")return;if(Ul(t,e,r))return;t.display.input.onKeyPress(e)}var Bl=400,us=function(e,t,i){this.time=e,this.pos=t,this.button=i};us.prototype.compare=function(e,t,i){return this.time+Bl>e&<(t,this.pos)==0&&i==this.button};var yo,Eo;function Wl(e,t){var i=+new Date;return Eo&&Eo.compare(i,e,t)?(yo=Eo=null,"triple"):yo&&yo.compare(i,e,t)?(Eo=new us(i,e,t),yo=null,"double"):(yo=new us(i,e,t),Eo=null,"single")}function el(e){var t=this,i=t.display;if(ut(t,e)||i.activeTouch&&i.input.supportsTouch())return;if(i.input.ensurePolled(),i.shift=e.shiftKey,Er(i,e)){a||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(cs(t,e))return;var n=yi(t,e),r=Ti(e),o=n?Wl(n,r):"single";if(window.focus(),r==1&&t.state.selectingText&&t.state.selectingText(e),n&&Hl(t,r,n,o,e))return;r==1?n?zl(t,n,o,e):si(e)==i.scroller&&en(e):r==2?(n&&Po(t.doc,n),setTimeout(function(){return i.input.focus()},20)):r==3&&(P?t.display.input.onContextMenu(e):qa(t))}function Hl(e,t,i,n,r){var o="Click";return n=="double"?o="Double"+o:n=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,_o(e,Gs(o,r),r,function(c){if(typeof c=="string"&&(c=bo[c]),!c)return!1;var m=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),m=c(e,i)!=Ae}finally{e.state.suppressEdits=!1}return m})}function Kl(e,t,i){var n=e.getOption("configureMouse"),r=n?n(e,t,i):{};if(r.unit==null){var o=g?i.shiftKey&&i.metaKey:i.altKey;r.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(r.extend==null||e.doc.extend)&&(r.extend=e.doc.extend||i.shiftKey),r.addNew==null&&(r.addNew=_?i.metaKey:i.ctrlKey),r.moveOnDrag==null&&(r.moveOnDrag=!(_?i.altKey:i.ctrlKey)),r}function zl(e,t,i,n){ue?setTimeout(A(To,e),0):e.curOp.focus=xe();var r=Kl(e,i,n),o=e.doc.sel,c;e.options.dragDrop&&li&&!e.isReadOnly()&&i=="single"&&(c=o.contains(t))>-1&&(lt((c=o.ranges[c]).from(),t)<0||t.xRel>0)&&(lt(c.to(),t)>0||t.xRel<0)?Gl(e,n,t,r):Ql(e,n,t,r)}function Gl(e,t,i,n){var r=e.display,o=!1,c=ui(e,function(w){a&&(r.scroller.draggable=!1),e.state.draggingText=!1,xn(r.wrapper.ownerDocument,"mouseup",c),xn(r.wrapper.ownerDocument,"mousemove",m),xn(r.scroller,"dragstart",b),xn(r.scroller,"drop",c),o||(en(w),n.addNew||Po(e.doc,i,null,null,n.extend),a&&!f||ue&&se==9?setTimeout(function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()},20):r.input.focus())}),m=function(w){o=o||Math.abs(t.clientX-w.clientX)+Math.abs(t.clientY-w.clientY)>=10},b=function(){return o=!0};a&&(r.scroller.draggable=!0),e.state.draggingText=c,c.copy=!n.moveOnDrag,r.scroller.dragDrop&&r.scroller.dragDrop(),qe(r.wrapper.ownerDocument,"mouseup",c),qe(r.wrapper.ownerDocument,"mousemove",m),qe(r.scroller,"dragstart",b),qe(r.scroller,"drop",c),qa(e),setTimeout(function(){return r.input.focus()},20)}function tl(e,t,i){if(i=="char")return new _n(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new _n(je(t.line,0),et(e.doc,je(t.line+1,0)));var n=i(e,t);return new _n(n.from,n.to)}function Ql(e,t,i,n){var r=e.display,o=e.doc;en(t);var c,m,b=o.sel,w=b.ranges;if(n.addNew&&!n.extend?(m=o.sel.contains(i),m>-1?c=w[m]:c=new _n(i,i)):(c=o.sel.primary(),m=o.sel.primIndex),n.unit=="rectangle")n.addNew||(c=new _n(i,i)),i=yi(e,t,!0,!0),m=-1;else{var Z=tl(e,i,n.unit);n.extend?c=is(c,Z.anchor,Z.head,n.extend):c=Z}n.addNew?m==-1?(m=w.length,Ui(o,pr(e,w.concat([c]),m),{scroll:!1,origin:"*mouse"})):w.length>1&&w[m].empty()&&n.unit=="char"&&!n.extend?(Ui(o,pr(e,w.slice(0,m).concat(w.slice(m+1)),0),{scroll:!1,origin:"*mouse"}),b=o.sel):rs(o,m,c,G):(m=0,Ui(o,new Gi([c],0),G),b=o.sel);var oe=i;function Re(it){if(lt(oe,it)==0)return;if(oe=it,n.unit=="rectangle"){for(var dt=[],St=e.options.tabSize,vt=C(ze(o,i.line).text,i.ch,St),Xt=C(ze(o,it.line).text,it.ch,St),Wn=Math.min(vt,Xt),Ii=Math.max(vt,Xt),ni=Math.min(i.line,it.line),or=Math.min(e.lastLine(),Math.max(i.line,it.line));ni<=or;ni++){var er=ze(o,ni).text,gi=me(er,Wn,St);Wn==Ii?dt.push(new _n(je(ni,gi),je(ni,gi))):er.length>gi&&dt.push(new _n(je(ni,gi),je(ni,me(er,Ii,St))))}dt.length||dt.push(new _n(i,i)),Ui(o,pr(e,b.ranges.slice(0,m).concat(dt),m),{origin:"*mouse",scroll:!1}),e.scrollIntoView(it)}else{var tr=c,ki=tl(e,it,n.unit),wi=tr.anchor,vi;lt(ki.anchor,wi)>0?(vi=ki.head,wi=xt(tr.from(),ki.anchor)):(vi=ki.anchor,wi=wn(tr.to(),ki.head));var ai=b.ranges.slice(0);ai[m]=Yl(e,new _n(et(o,wi),vi)),Ui(o,pr(e,ai,m),G)}}var Te=r.wrapper.getBoundingClientRect(),Pe=0;function Ue(it){var dt=++Pe,St=yi(e,it,!0,n.unit=="rectangle");if(!St)return;if(lt(St,oe)!=0){e.curOp.focus=xe(),Re(St);var vt=xa(r,o);(St.line>=vt.to||St.line<vt.from)&&setTimeout(ui(e,function(){Pe==dt&&Ue(it)}),150)}else{var Xt=it.clientY<Te.top?-20:it.clientY>Te.bottom?20:0;Xt&&setTimeout(ui(e,function(){if(Pe!=dt)return;r.scroller.scrollTop+=Xt,Ue(it)}),50)}}function Qe(it){e.state.selectingText=!1,Pe=Infinity,it&&(en(it),r.input.focus()),xn(r.wrapper.ownerDocument,"mousemove",nt),xn(r.wrapper.ownerDocument,"mouseup",ot),o.history.lastSelOrigin=null}var nt=ui(e,function(it){it.buttons===0||!Ti(it)?Qe(it):Ue(it)}),ot=ui(e,Qe);e.state.selectingText=ot,qe(r.wrapper.ownerDocument,"mousemove",nt),qe(r.wrapper.ownerDocument,"mouseup",ot)}function Yl(e,t){var i=t.anchor,n=t.head,r=ze(e.doc,i.line);if(lt(i,n)==0&&i.sticky==n.sticky)return t;var o=At(r);if(!o)return t;var c=Ze(o,i.ch,i.sticky),m=o[c];if(m.from!=i.ch&&m.to!=i.ch)return t;var b=c+(m.from==i.ch==(m.level!=1)?0:1);if(b==0||b==o.length)return t;var w;if(n.line!=i.line)w=(n.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Z=Ze(o,n.ch,n.sticky),oe=Z-c||(n.ch-i.ch)*(m.level==1?-1:1);Z==b-1||Z==b?w=oe<0:w=oe>0}var Re=o[b+(w?-1:0)],Te=w==(Re.level==1),Pe=Te?Re.from:Re.to,Ue=Te?"after":"before";return i.ch==Pe&&i.sticky==Ue?t:new _n(new je(i.line,Pe,Ue),n)}function nl(e,t,i,n){var r,o;if(t.touches)r=t.touches[0].clientX,o=t.touches[0].clientY;else try{r=t.clientX,o=t.clientY}catch(Re){return!1}if(r>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&en(t);var c=e.display,m=c.lineDiv.getBoundingClientRect();if(o>m.bottom||!It(e,i))return oi(t);o-=m.top-c.viewOffset;for(var b=0;b<e.display.gutterSpecs.length;++b){var w=c.gutters.childNodes[b];if(w&&w.getBoundingClientRect().right>=r){var Z=Kt(e.doc,o),oe=e.display.gutterSpecs[b];return Bt(e,i,e,Z,oe.className,t),oi(t)}}}function cs(e,t){return nl(e,t,"gutterClick",!0)}function il(e,t){if(Er(e.display,t)||Vl(e,t))return;if(ut(e,t,"contextmenu"))return;P||e.display.input.onContextMenu(t)}function Vl(e,t){return It(e,"gutterContextMenu")?nl(e,t,"gutterContextMenu",!1):!1}function rl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zt(e)}var Ka={toString:function(){return"CodeMirror.Init"}},al={},Ko={};function Jl(e){var t=e.optionHandlers;function i(n,r,o,c){e.defaults[n]=r,o&&(t[n]=c?function(m,b,w){w!=Ka&&o(m,b,w)}:o)}e.defineOption=i,e.Init=Ka,i("value","",function(n,r){return n.setValue(r)},!0),i("mode",null,function(n,r){n.doc.modeOption=r,Gr(n)},!0),i("indentUnit",2,Gr,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(n){lo(n),zt(n),Mn(n)},!0),i("lineSeparator",null,function(n,r){if(n.doc.lineSep=r,!r)return;var o=[],c=n.doc.first;n.doc.iter(function(b){for(var w=0;;){var Z=b.text.indexOf(r,w);if(Z==-1)break;w=Z+r.length,o.push(je(c,Z))}c++});for(var m=o.length-1;m>=0;m--)Fa(n.doc,r,o[m],je(o[m].line,o[m].ch+r.length))}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,r,o){n.state.specialChars=new RegExp(r.source+(r.test(" ")?"":"| "),"g"),o!=Ka&&n.refresh()}),i("specialCharPlaceholder",Xr,function(n){return n.refresh()},!0),i("electricChars",!0),i("inputStyle",W?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(n,r){return n.getInputField().spellcheck=r},!0),i("autocorrect",!1,function(n,r){return n.getInputField().autocorrect=r},!0),i("autocapitalize",!1,function(n,r){return n.getInputField().autocapitalize=r},!0),i("rtlMoveVisually",!j),i("wholeLineUpdateBefore",!0),i("theme","default",function(n){rl(n),Ar(n)},!0),i("keyMap","default",function(n,r,o){var c=Wo(r),m=o!=Ka&&Wo(o);m&&m.detach&&m.detach(n,c),c.attach&&c.attach(n,m||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Zl,!0),i("gutters",[],function(n,r){n.display.gutterSpecs=zi(r,n.options.lineNumbers),Ar(n)},!0),i("fixedGutter",!0,function(n,r){n.display.gutters.style.left=r?ji(n.display)+"px":"0",n.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(n){return Hr(n)},!0),i("scrollbarStyle","native",function(n){Na(n),Hr(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),i("lineNumbers",!1,function(n,r){n.display.gutterSpecs=zi(n.options.gutters,r),Ar(n)},!0),i("firstLineNumber",1,Ar,!0),i("lineNumberFormatter",function(n){return n},Ar,!0),i("showCursorWhenSelecting",!1,Cn,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(n,r){r=="nocursor"&&(Zr(n),n.display.input.blur()),n.display.input.readOnlyChanged(r)}),i("screenReaderLabel",null,function(n,r){r=r===""?null:r,n.display.input.screenReaderLabelChanged(r)}),i("disableInput",!1,function(n,r){r||n.display.input.reset()},!0),i("dragDrop",!0,Xl),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Cn,!0),i("singleCursorHeightPerLine",!0,Cn,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,lo,!0),i("addModeClass",!1,lo,!0),i("pollInterval",100),i("undoDepth",200,function(n,r){return n.doc.history.undoDepth=r}),i("historyEventDelay",1250),i("viewportMargin",10,function(n){return n.refresh()},!0),i("maxHighlightLength",1e4,lo,!0),i("moveInputWithCursor",!0,function(n,r){r||n.display.input.resetPosition()}),i("tabindex",null,function(n,r){return n.display.input.getField().tabIndex=r||""}),i("autofocus",null),i("direction","ltr",function(n,r){return n.doc.setDirection(r)},!0),i("phrases",null)}function Xl(e,t,i){var n=i&&i!=Ka;if(!t!=!n){var r=e.display.dragFunctions,o=t?qe:xn;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Zl(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(H(e.display.wrapper,"CodeMirror-wrap"),Jr(e)),Hi(e),Mn(e),zt(e),setTimeout(function(){return Hr(e)},100)}function ei(e,t){var i=this;if(!(this instanceof ei))return new ei(e,t);this.options=t=t?l(t):{},l(al,t,!1);var n=t.value;typeof n=="string"?n=new $i(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var r=new ei.inputStyles[t.inputStyle](this),o=this.display=new ga(e,n,r,t);o.wrapper.CodeMirror=this,rl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Na(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 D,keySeq:null,specialChars:null},t.autofocus&&!W&&o.input.focus(),ue&&se<11&&setTimeout(function(){return i.display.input.reset(!0)},20),ql(this),Rl(),Lr(this),this.curOp.forceUpdate=!0,vs(this,n),t.autofocus&&!W||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&Dr(i)},20):Zr(this);for(var c in Ko)Ko.hasOwnProperty(c)&&Ko[c](this,t[c],Ka);Ai(this),t.finishInit&&t.finishInit(this);for(var m=0;m<ds.length;++m)ds[m](this);Kr(this),a&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility"&&(o.lineDiv.style.textRendering="auto")}ei.defaults=al,ei.optionHandlers=Ko;function ql(e){var t=e.display;qe(t.scroller,"mousedown",ui(e,el)),ue&&se<11?qe(t.scroller,"dblclick",ui(e,function(b){if(ut(e,b))return;var w=yi(e,b);if(!w||cs(e,b)||Er(e.display,b))return;en(b);var Z=e.findWordAt(w);Po(e.doc,Z.anchor,Z.head)})):qe(t.scroller,"dblclick",function(b){return ut(e,b)||en(b)}),qe(t.scroller,"contextmenu",function(b){return il(e,b)}),qe(t.input.getField(),"contextmenu",function(b){t.scroller.contains(b.target)||il(e,b)});var i,n={end:0};function r(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function o(b){if(b.touches.length!=1)return!1;var w=b.touches[0];return w.radiusX<=1&&w.radiusY<=1}function c(b,w){if(w.left==null)return!0;var Z=w.left-b.left,oe=w.top-b.top;return Z*Z+oe*oe>20*20}qe(t.scroller,"touchstart",function(b){if(!ut(e,b)&&!o(b)&&!cs(e,b)){t.input.ensurePolled(),clearTimeout(i);var w=+new Date;t.activeTouch={start:w,moved:!1,prev:w-n.end<=300?n:null},b.touches.length==1&&(t.activeTouch.left=b.touches[0].pageX,t.activeTouch.top=b.touches[0].pageY)}}),qe(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),qe(t.scroller,"touchend",function(b){var w=t.activeTouch;if(w&&!Er(t,b)&&w.left!=null&&!w.moved&&new Date-w.start<300){var Z=e.coordsChar(t.activeTouch,"page"),oe;!w.prev||c(w,w.prev)?oe=new _n(Z,Z):!w.prev.prev||c(w,w.prev.prev)?oe=e.findWordAt(Z):oe=new _n(je(Z.line,0),et(e.doc,je(Z.line+1,0))),e.setSelection(oe.anchor,oe.head),e.focus(),en(b)}r()}),qe(t.scroller,"touchcancel",r),qe(t.scroller,"scroll",function(){t.scroller.clientHeight&&(ea(e,t.scroller.scrollTop),hr(e,t.scroller.scrollLeft,!0),Bt(e,"scroll",e))}),qe(t.scroller,"mousewheel",function(b){return oo(e,b)}),qe(t.scroller,"DOMMouseScroll",function(b){return oo(e,b)}),qe(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(b){ut(e,b)||On(b)},over:function(b){ut(e,b)||(xl(e,b),On(b))},start:function(b){return Cl(e,b)},drop:ui(e,Sl),leave:function(b){ut(e,b)||Ws(e)}};var m=t.input.getField();qe(m,"keyup",function(b){return qs.call(e,b)}),qe(m,"keydown",ui(e,Zs)),qe(m,"keypress",ui(e,$s)),qe(m,"focus",function(b){return Dr(e,b)}),qe(m,"blur",function(b){return Zr(e,b)})}var ds=[];ei.defineInitHook=function(e){return ds.push(e)};function Ao(e,t,i,n){var r=e.doc,o;i==null&&(i="add"),i=="smart"&&(r.mode.indent?o=Jt(e,t).state:i="prev");var c=e.options.tabSize,m=ze(r,t),b=C(m.text,null,c);m.stateAfter&&(m.stateAfter=null);var w=m.text.match(/^\s*/)[0],Z;if(!n&&!/\S/.test(m.text))Z=0,i="not";else if(i=="smart"&&(Z=r.mode.indent(o,m.text.slice(w.length),m.text),Z==Ae||Z>150)){if(!n)return;i="prev"}i=="prev"?t>r.first?Z=C(ze(r,t-1).text,null,c):Z=0:i=="add"?Z=b+e.options.indentUnit:i=="subtract"?Z=b-e.options.indentUnit:typeof i=="number"&&(Z=b+i),Z=Math.max(0,Z);var oe="",Re=0;if(e.options.indentWithTabs)for(var Te=Math.floor(Z/c);Te;--Te)Re+=c,oe+=" ";if(Re<Z&&(oe+=Oe(Z-Re)),oe!=w)return Fa(r,oe,je(t,0),je(t,w.length),"+input"),m.stateAfter=null,!0;for(var Pe=0;Pe<r.sel.ranges.length;Pe++){var Ue=r.sel.ranges[Pe];if(Ue.head.line==t&&Ue.head.ch<w.length){var Qe=je(t,w.length);rs(r,Pe,new _n(Qe,Qe));break}}}var Tr=null;function zo(e){Tr=e}function hs(e,t,i,n,r){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var c=+new Date-200,m=r=="paste"||e.state.pasteIncoming>c,b=Si(t),w=null;if(m&&n.ranges.length>1)if(Tr&&Tr.text.join(`
|
|
`)==t){if(n.ranges.length%Tr.text.length==0){w=[];for(var Z=0;Z<Tr.text.length;Z++)w.push(o.splitLines(Tr.text[Z]))}}else b.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(w=Y(b,function(nt){return[nt]}));for(var oe=e.curOp.updateInput,Re=n.ranges.length-1;Re>=0;Re--){var Te=n.ranges[Re],Pe=Te.from(),Ue=Te.to();Te.empty()&&(i&&i>0?Pe=je(Pe.line,Pe.ch-i):e.state.overwrite&&!m?Ue=je(Ue.line,Math.min(ze(o,Ue.line).text.length,Ue.ch+S(b).length)):m&&Tr&&Tr.lineWise&&Tr.text.join(`
|
|
`)==b.join(`
|
|
`)&&(Pe=Ue=je(Pe.line,0)));var Qe={from:Pe,to:Ue,text:w?w[Re%w.length]:b,origin:r||(m?"paste":e.state.cutIncoming>c?"cut":"+input")};Ua(e.doc,Qe),Be(e,"inputRead",e,Qe)}t&&!m&&sl(e,t),qr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=oe),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ki(t,function(){return hs(t,i,0,null,"paste")}),!0}function sl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var i=e.doc.sel,n=i.ranges.length-1;n>=0;n--){var r=i.ranges[n];if(r.head.ch>100||n&&i.ranges[n-1].head.line==r.head.line)continue;var o=e.getModeAt(r.head),c=!1;if(o.electricChars){for(var m=0;m<o.electricChars.length;m++)if(t.indexOf(o.electricChars.charAt(m))>-1){c=Ao(e,r.head.line,"smart");break}}else o.electricInput&&(o.electricInput.test(ze(e.doc,r.head.line).text.slice(0,r.head.ch))&&(c=Ao(e,r.head.line,"smart")));c&&Be(e,"electricInput",e,r.head.line)}}function ll(e){for(var t=[],i=[],n=0;n<e.doc.sel.ranges.length;n++){var r=e.doc.sel.ranges[n].head.line,o={anchor:je(r,0),head:je(r+1,0)};i.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:i}}function ul(e,t,i,n){e.setAttribute("autocorrect",i?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function cl(){var e=ge("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=ge("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return a?e.style.width="1000px":e.setAttribute("wrap","off"),p&&(e.style.border="1px solid black"),ul(e),t}function $l(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,r){var o=this.options,c=o[n];if(o[n]==r&&n!="mode")return;o[n]=r,t.hasOwnProperty(n)&&ui(this,t[n])(this,r,c),Bt(this,"optionChange",this,n)},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,r){this.state.keyMaps[r?"push":"unshift"](Wo(n))},removeKeyMap:function(n){for(var r=this.state.keyMaps,o=0;o<r.length;++o)if(r[o]==n||r[o].name==n)return r.splice(o,1),!0},addOverlay:Li(function(n,r){var o=n.token?n:e.getMode(this.options,n);if(o.startState)throw new Error("Overlays may not be stateful.");k(this.state.overlays,{mode:o,modeSpec:n,opaque:r&&r.opaque,priority:r&&r.priority||0},function(c){return c.priority}),this.state.modeGen++,Mn(this)}),removeOverlay:Li(function(n){for(var r=this.state.overlays,o=0;o<r.length;++o){var c=r[o].modeSpec;if(c==n||typeof n=="string"&&c.name==n){r.splice(o,1),this.state.modeGen++,Mn(this);return}}}),indentLine:Li(function(n,r,o){typeof r!="string"&&typeof r!="number"&&(r==null?r=this.options.smartIndent?"smart":"prev":r=r?"add":"subtract"),un(this.doc,n)&&Ao(this,n,r,o)}),indentSelection:Li(function(n){for(var r=this.doc.sel.ranges,o=-1,c=0;c<r.length;c++){var m=r[c];if(m.empty())m.head.line>o&&(Ao(this,m.head.line,n,!0),o=m.head.line,c==this.doc.sel.primIndex&&qr(this));else{var b=m.from(),w=m.to(),Z=Math.max(o,b.line);o=Math.min(this.lastLine(),w.line-(w.ch?0:1))+1;for(var oe=Z;oe<o;++oe)Ao(this,oe,n);var Re=this.doc.sel.ranges;b.ch==0&&r.length==Re.length&&Re[c].from().ch>0&&rs(this.doc,c,new _n(b,Re[c].to()),be)}}}),getTokenAt:function(n,r){return Fn(this,n,r)},getLineTokens:function(n,r){return Fn(this,je(n),r,!0)},getTokenTypeAt:function(n){n=et(this.doc,n);var r=yn(this,ze(this.doc,n.line)),o=0,c=(r.length-1)/2,m=n.ch,b;if(m==0)b=r[2];else for(;;){var w=o+c>>1;if((w?r[w*2-1]:0)>=m)c=w;else if(r[w*2+1]<m)o=w+1;else{b=r[w*2+2];break}}var Z=b?b.indexOf("overlay "):-1;return Z<0?b:Z==0?null:b.slice(0,Z-1)},getModeAt:function(n){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(n).state).mode:r},getHelper:function(n,r){return this.getHelpers(n,r)[0]},getHelpers:function(n,r){var o=[];if(!i.hasOwnProperty(r))return o;var c=i[r],m=this.getModeAt(n);if(typeof m[r]=="string")c[m[r]]&&o.push(c[m[r]]);else if(m[r])for(var b=0;b<m[r].length;b++){var w=c[m[r][b]];w&&o.push(w)}else m.helperType&&c[m.helperType]?o.push(c[m.helperType]):c[m.name]&&o.push(c[m.name]);for(var Z=0;Z<c._global.length;Z++){var oe=c._global[Z];oe.pred(m,this)&&he(o,oe.val)==-1&&o.push(oe.val)}return o},getStateAfter:function(n,r){var o=this.doc;return n=Rt(o,n==null?o.first+o.size-1:n),Jt(this,n+1,r).state},cursorCoords:function(n,r){var o,c=this.doc.sel.primary();return n==null?o=c.head:typeof n=="object"?o=et(this.doc,n):o=n?c.from():c.to(),$t(this,o,r||"page")},charCoords:function(n,r){return Yn(this,et(this.doc,n),r||"page")},coordsChar:function(n,r){return n=qt(this,n,r||"page"),nn(this,n.left,n.top)},lineAtHeight:function(n,r){return n=qt(this,{top:n,left:0},r||"page").top,Kt(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,r,o){var c=!1,m;if(typeof n=="number"){var b=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>b&&(n=b,c=!0),m=ze(this.doc,n)}else m=n;return on(this,m,{top:0,left:0},r||"page",o||c).top+(c?this.doc.height-Zi(m):0)},defaultTextHeight:function(){return ri(this.display)},defaultCharWidth:function(){return _i(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,r,o,c,m){var b=this.display;n=$t(this,et(this.doc,n));var w=n.bottom,Z=n.left;if(r.style.position="absolute",r.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(r),b.sizer.appendChild(r),c=="over")w=n.top;else if(c=="above"||c=="near"){var oe=Math.max(b.wrapper.clientHeight,this.doc.height),Re=Math.max(b.sizer.clientWidth,b.lineSpace.clientWidth);(c=="above"||n.bottom+r.offsetHeight>oe)&&n.top>r.offsetHeight?w=n.top-r.offsetHeight:n.bottom+r.offsetHeight<=oe&&(w=n.bottom),Z+r.offsetWidth>Re&&(Z=Re-r.offsetWidth)}r.style.top=w+"px",r.style.left=r.style.right="",m=="right"?(Z=b.sizer.clientWidth-r.offsetWidth,r.style.right="0px"):(m=="left"?Z=0:m=="middle"&&(Z=(b.sizer.clientWidth-r.offsetWidth)/2),r.style.left=Z+"px"),o&&So(this,{left:Z,top:w,right:Z+r.offsetWidth,bottom:w+r.offsetHeight})},triggerOnKeyDown:Li(Zs),triggerOnKeyPress:Li($s),triggerOnKeyUp:qs,triggerOnMouseDown:Li(el),execCommand:function(n){if(bo.hasOwnProperty(n))return bo[n].call(null,this)},triggerElectric:Li(function(n){sl(this,n)}),findPosH:function(n,r,o,c){var m=1;r<0&&(m=-1,r=-r);for(var b=et(this.doc,n),w=0;w<r&&!(b=fs(this.doc,b,m,o,c),b.hitSide);++w);return b},moveH:Li(function(n,r){var o=this;this.extendSelectionsBy(function(c){return o.display.shift||o.doc.extend||c.empty()?fs(o.doc,c.head,n,r,o.options.rtlMoveVisually):n<0?c.from():c.to()},$)}),deleteH:Li(function(n,r){var o=this.doc.sel,c=this.doc;o.somethingSelected()?c.replaceSelection("",null,"+delete"):Ha(this,function(m){var b=fs(c,m.head,n,r,!1);return n<0?{from:b,to:m.head}:{from:m.head,to:b}})}),findPosV:function(n,r,o,c){var m=1,b=c;r<0&&(m=-1,r=-r);for(var w=et(this.doc,n),Z=0;Z<r;++Z){var oe=$t(this,w,"div");if(b==null?b=oe.left:oe.left=b,w=dl(this,oe,m,o),w.hitSide)break}return w},moveV:Li(function(n,r){var o=this,c=this.doc,m=[],b=!this.display.shift&&!c.extend&&c.sel.somethingSelected();if(c.extendSelectionsBy(function(Z){if(b)return n<0?Z.from():Z.to();var oe=$t(o,Z.head,"div");Z.goalColumn!=null&&(oe.left=Z.goalColumn),m.push(oe.left);var Re=dl(o,oe,n,r);return r=="page"&&Z==c.sel.primary()&&to(o,Yn(o,Re,"div").top-oe.top),Re},$),m.length)for(var w=0;w<c.sel.ranges.length;w++)c.sel.ranges[w].goalColumn=m[w]}),findWordAt:function(n){var r=this.doc,o=ze(r,n.line).text,c=n.ch,m=n.ch;if(o){var b=this.getHelper(n,"wordChars");(n.sticky=="before"||m==o.length)&&c?--c:++m;for(var w=o.charAt(c),Z=Fe(w,b)?function(oe){return Fe(oe,b)}:/\s/.test(w)?function(oe){return/\s/.test(oe)}:function(oe){return!/\s/.test(oe)&&!Fe(oe)};c>0&&Z(o.charAt(c-1));)--c;for(;m<o.length&&Z(o.charAt(m));)++m}return new _n(je(n.line,c),je(n.line,m))},toggleOverwrite:function(n){if(n!=null&&n==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?M(this.display.cursorDiv,"CodeMirror-overwrite"):H(this.display.cursorDiv,"CodeMirror-overwrite"),Bt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==xe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Li(function(n,r){$r(this,n,r)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-ve(this)-this.display.barHeight,width:n.scrollWidth-ve(this)-this.display.barWidth,clientHeight:O(this),clientWidth:X(this)}},scrollIntoView:Li(function(n,r){n==null?(n={from:this.doc.sel.primary().head,to:null},r==null&&(r=this.options.cursorScrollMargin)):typeof n=="number"?n={from:je(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=r||0,n.from.line!=null?Jo(this,n):ha(this,n.from,n.to,n.margin)}),setSize:Li(function(n,r){var o=this,c=function(b){return typeof b=="number"||/^\d+$/.test(String(b))?b+"px":b};n!=null&&(this.display.wrapper.style.width=c(n)),r!=null&&(this.display.wrapper.style.height=c(r)),this.options.lineWrapping&&Ft(this);var m=this.display.viewFrom;this.doc.iter(m,this.display.viewTo,function(b){if(b.widgets){for(var w=0;w<b.widgets.length;w++)if(b.widgets[w].noHScroll){$n(o,m,"widget");break}}++m}),this.curOp.forceUpdate=!0,Bt(this,"refresh",this)}),operation:function(n){return Ki(this,n)},startOperation:function(){return Lr(this)},endOperation:function(){return Kr(this)},refresh:Li(function(){var n=this.display.cachedTextHeight;Mn(this),this.curOp.forceUpdate=!0,zt(this),$r(this,this.doc.scrollLeft,this.doc.scrollTop),Ma(this.display),(n==null||Math.abs(n-ri(this.display))>.5||this.options.lineWrapping)&&Hi(this),Bt(this,"refresh",this)}),swapDoc:Li(function(n){var r=this.doc;return r.cm=null,this.state.selectingText&&this.state.selectingText(),vs(this,n),zt(this),this.display.input.reset(),$r(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,Be(this,"swapDoc",this,r),r}),phrase:function(n){var r=this.options.phrases;return r&&Object.prototype.hasOwnProperty.call(r,n)?r[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}},pn(e),e.registerHelper=function(n,r,o){i.hasOwnProperty(n)||(i[n]=e[n]={_global:[]}),i[n][r]=o},e.registerGlobalHelper=function(n,r,o,c){e.registerHelper(n,r,c),i[n]._global.push({pred:o,val:c})}}function fs(e,t,i,n,r){var o=t,c=i,m=ze(e,t.line),b=r&&e.direction=="rtl"?-i:i;function w(){var ot=t.line+b;return ot<e.first||ot>=e.first+e.size?!1:(t=new je(ot,t.ch,t.sticky),m=ze(e,ot))}function Z(ot){var it;if(n=="codepoint"){var dt=m.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(dt)?it=null:it=new je(t.line,Math.max(0,Math.min(m.text.length,t.ch+i*(dt>=55296&&dt<56320?2:1))),-i)}else r?it=Ll(e.cm,m,t,i):it=os(m,t,i);if(it==null)if(!ot&&w())t=ss(r,e.cm,m,t.line,b);else return!1;else t=it;return!0}if(n=="char"||n=="codepoint")Z();else if(n=="column")Z(!0);else if(n=="word"||n=="group")for(var oe=null,Re=n=="group",Te=e.cm&&e.cm.getHelper(t,"wordChars"),Pe=!0;!(i<0&&!Z(!Pe));Pe=!1){var Ue=m.text.charAt(t.ch)||`
|
|
`,Qe=Fe(Ue,Te)?"w":Re&&Ue==`
|
|
`?"n":!Re||/\s/.test(Ue)?null:"p";if(Re&&!Pe&&!Qe&&(Qe="s"),oe&&oe!=Qe){i<0&&(i=1,Z(),t.sticky="after");break}if(Qe&&(oe=Qe),i>0&&!Z(!Pe))break}var nt=Uo(e,t,o,c,!0);return Un(o,nt)&&(nt.hitSide=!0),nt}function dl(e,t,i,n){var r=e.doc,o=t.left,c;if(n=="page"){var m=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),b=Math.max(m-.5*ri(e.display),3);c=(i>0?t.bottom:t.top)+i*b}else n=="line"&&(c=i>0?t.bottom+3:t.top-3);for(var w;!(w=nn(e,o,c),!w.outside);){if(i<0?c<=0:c>=r.height){w.hitSide=!0;break}c+=i*5}return w}var Ln=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new D,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ln.prototype.init=function(e){var t=this,i=this,n=i.cm,r=i.div=e.lineDiv;ul(r,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function o(m){for(var b=m.target;b;b=b.parentNode){if(b==r)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(b.className))break}return!1}qe(r,"paste",function(m){if(!o(m)||ut(n,m)||ol(m,n))return;se<=11&&setTimeout(ui(n,function(){return t.updateFromDOM()}),20)}),qe(r,"compositionstart",function(m){t.composing={data:m.data,done:!1}}),qe(r,"compositionupdate",function(m){t.composing||(t.composing={data:m.data,done:!1})}),qe(r,"compositionend",function(m){t.composing&&(m.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),qe(r,"touchstart",function(){return i.forceCompositionEnd()}),qe(r,"input",function(){t.composing||t.readFromDOMSoon()});function c(m){if(!o(m)||ut(n,m))return;if(n.somethingSelected())zo({lineWise:!1,text:n.getSelections()}),m.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var b=ll(n);zo({lineWise:!0,text:b.text}),m.type=="cut"&&n.operation(function(){n.setSelections(b.ranges,0,be),n.replaceSelection("",null,"cut")})}else return;if(m.clipboardData){m.clipboardData.clearData();var w=Tr.text.join(`
|
|
`);if(m.clipboardData.setData("Text",w),m.clipboardData.getData("Text")==w){m.preventDefault();return}}var Z=cl(),oe=Z.firstChild;n.display.lineSpace.insertBefore(Z,n.display.lineSpace.firstChild),oe.value=Tr.text.join(`
|
|
`);var Re=document.activeElement;v(oe),setTimeout(function(){n.display.lineSpace.removeChild(Z),Re.focus(),Re==r&&i.showPrimarySelection()},50)}qe(r,"copy",c),qe(r,"cut",c)},Ln.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ln.prototype.prepareSelection=function(){var e=_r(this.cm,!1);return e.focus=document.activeElement==this.div,e},Ln.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Ln.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ln.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,i=t.doc.sel.primary(),n=i.from(),r=i.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||r.line<t.display.viewFrom){e.removeAllRanges();return}var o=Go(t,e.anchorNode,e.anchorOffset),c=Go(t,e.focusNode,e.focusOffset);if(o&&!o.bad&&c&&!c.bad&<(xt(o,c),n)==0&<(wn(o,c),r)==0)return;var m=t.display.view,b=n.line>=t.display.viewFrom&&hl(t,n)||{node:m[0].measure.map[2],offset:0},w=r.line<t.display.viewTo&&hl(t,r);if(!w){var Z=m[m.length-1].measure,oe=Z.maps?Z.maps[Z.maps.length-1]:Z.map;w={node:oe[oe.length-1],offset:oe[oe.length-2]-oe[oe.length-3]}}if(!b||!w){e.removeAllRanges();return}var Re=e.rangeCount&&e.getRangeAt(0),Te;try{Te=F(b.node,b.offset,w.offset,w.node)}catch(Pe){}Te&&(!Ie&&t.state.focused?(e.collapse(b.node,b.offset),Te.collapsed||(e.removeAllRanges(),e.addRange(Te))):(e.removeAllRanges(),e.addRange(Te)),Re&&e.anchorNode==null?e.addRange(Re):Ie&&this.startGracePeriod()),this.rememberSelection()},Ln.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ln.prototype.showMultipleSelections=function(e){ye(this.cm.display.cursorDiv,e.cursors),ye(this.cm.display.selectionDiv,e.selection)},Ln.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ln.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return K(this.div,t)},Ln.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ln.prototype.blur=function(){this.div.blur()},Ln.prototype.getField=function(){return this.div},Ln.prototype.supportsTouch=function(){return!0},Ln.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ki(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},Ln.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ln.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var e=this.getSelection(),t=this.cm;if(T&&I&&this.cm.display.gutterSpecs.length&&eu(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var i=Go(t,e.anchorNode,e.anchorOffset),n=Go(t,e.focusNode,e.focusOffset);i&&n&&Ki(t,function(){Ui(t.doc,Or(i,n),be),(i.bad||n.bad)&&(t.curOp.selectionChanged=!0)})},Ln.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,i=e.doc.sel.primary(),n=i.from(),r=i.to();if(n.ch==0&&n.line>e.firstLine()&&(n=je(n.line-1,ze(e.doc,n.line-1).length)),r.ch==ze(e.doc,r.line).text.length&&r.line<e.lastLine()&&(r=je(r.line+1,0)),n.line<t.viewFrom||r.line>t.viewTo-1)return!1;var o,c,m;n.line==t.viewFrom||(o=Bn(e,n.line))==0?(c=Nt(t.view[0].line),m=t.view[0].node):(c=Nt(t.view[o].line),m=t.view[o-1].node.nextSibling);var b=Bn(e,r.line),w,Z;if(b==t.view.length-1?(w=t.viewTo-1,Z=t.lineDiv.lastChild):(w=Nt(t.view[b+1].line)-1,Z=t.view[b+1].node.previousSibling),!m)return!1;for(var oe=e.doc.splitLines(tu(e,m,Z,c,w)),Re=Zt(e.doc,je(c,0),je(w,ze(e.doc,w).text.length));oe.length>1&&Re.length>1;)if(S(oe)==S(Re))oe.pop(),Re.pop(),w--;else if(oe[0]==Re[0])oe.shift(),Re.shift(),c++;else break;for(var Te=0,Pe=0,Ue=oe[0],Qe=Re[0],nt=Math.min(Ue.length,Qe.length);Te<nt&&Ue.charCodeAt(Te)==Qe.charCodeAt(Te);)++Te;for(var ot=S(oe),it=S(Re),dt=Math.min(ot.length-(oe.length==1?Te:0),it.length-(Re.length==1?Te:0));Pe<dt&&ot.charCodeAt(ot.length-Pe-1)==it.charCodeAt(it.length-Pe-1);)++Pe;if(oe.length==1&&Re.length==1&&c==n.line)for(;Te&&Te>n.ch&&ot.charCodeAt(ot.length-Pe-1)==it.charCodeAt(it.length-Pe-1);)Te--,Pe++;oe[oe.length-1]=ot.slice(0,ot.length-Pe).replace(/^\u200b+/,""),oe[0]=oe[0].slice(Te).replace(/\u200b+$/,"");var St=je(c,Te),vt=je(w,Re.length?S(Re).length-Pe:0);if(oe.length>1||oe[0]||lt(St,vt))return Fa(e.doc,oe,St,vt,"+input"),!0},Ln.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ln.prototype.reset=function(){this.forceCompositionEnd()},Ln.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Ln.prototype.readFromDOMSoon=function(){var e=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80)},Ln.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ki(this.cm,function(){return Mn(e.cm)})},Ln.prototype.setUneditable=function(e){e.contentEditable="false"},Ln.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||ui(this.cm,hs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Ln.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ln.prototype.onContextMenu=function(){},Ln.prototype.resetPosition=function(){},Ln.prototype.needsContentAttribute=!0;function hl(e,t){var i=Ee(e,t.line);if(!i||i.hidden)return null;var n=ze(e.doc,t.line),r=x(i,n,t.line),o=At(n,e.doc.direction),c="left";if(o){var m=Ze(o,t.ch);c=m%2?"right":"left"}var b=Ke(r.map,t.ch,c);return b.offset=b.collapse=="right"?b.end:b.start,b}function eu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function za(e,t){return t&&(e.bad=!0),e}function tu(e,t,i,n,r){var o="",c=!1,m=e.doc.lineSeparator(),b=!1;function w(Te){return function(Pe){return Pe.id==Te}}function Z(){c&&(o+=m,b&&(o+=m),c=b=!1)}function oe(Te){Te&&(Z(),o+=Te)}function Re(Te){if(Te.nodeType==1){var Pe=Te.getAttribute("cm-text");if(Pe){oe(Pe);return}var Ue=Te.getAttribute("cm-marker"),Qe;if(Ue){var nt=e.findMarks(je(n,0),je(r+1,0),w(+Ue));nt.length&&(Qe=nt[0].find(0))&&oe(Zt(e.doc,Qe.from,Qe.to).join(m));return}if(Te.getAttribute("contenteditable")=="false")return;var ot=/^(pre|div|p|li|table|br)$/i.test(Te.nodeName);if(!/^br$/i.test(Te.nodeName)&&Te.textContent.length==0)return;ot&&Z();for(var it=0;it<Te.childNodes.length;it++)Re(Te.childNodes[it]);/^(pre|p)$/i.test(Te.nodeName)&&(b=!0),ot&&(c=!0)}else Te.nodeType==3&&oe(Te.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Re(t),t==i);)t=t.nextSibling,b=!1;return o}function Go(e,t,i){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[i],!n)return za(e.clipPos(je(e.display.viewTo-1)),!0);t=null,i=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var r=0;r<e.display.view.length;r++){var o=e.display.view[r];if(o.node==n)return nu(o,t,i)}}function nu(e,t,i){var n=e.text.firstChild,r=!1;if(!t||!K(n,t))return za(je(Nt(e.line),0),!0);if(t==n&&(r=!0,t=n.childNodes[i],i=0,!t)){var o=e.rest?S(e.rest):e.line;return za(je(Nt(o),o.text.length),r)}var c=t.nodeType==3?t:null,m=t;for(!c&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(c=t.firstChild,i&&(i=c.nodeValue.length));m.parentNode!=n;)m=m.parentNode;var b=e.measure,w=b.maps;function Z(Qe,nt,ot){for(var it=-1;it<(w?w.length:0);it++)for(var dt=it<0?b.map:w[it],St=0;St<dt.length;St+=3){var vt=dt[St+2];if(vt==Qe||vt==nt){var Xt=Nt(it<0?e.line:e.rest[it]),Wn=dt[St]+ot;return(ot<0||vt!=Qe)&&(Wn=dt[St+(ot?1:0)]),je(Xt,Wn)}}}var oe=Z(c,m,i);if(oe)return za(oe,r);for(var Re=m.nextSibling,Te=c?c.nodeValue.length-i:0;Re;Re=Re.nextSibling){if(oe=Z(Re,Re.firstChild,0),oe)return za(je(oe.line,oe.ch-Te),r);Te+=Re.textContent.length}for(var Pe=m.previousSibling,Ue=i;Pe;Pe=Pe.previousSibling){if(oe=Z(Pe,Pe.firstChild,-1),oe)return za(je(oe.line,oe.ch+Ue),r);Ue+=Pe.textContent.length}}var di=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new D,this.hasSelection=!1,this.composing=null};di.prototype.init=function(e){var t=this,i=this,n=this.cm;this.createField(e);var r=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),p&&(r.style.width="0px"),qe(r,"input",function(){ue&&se>=9&&t.hasSelection&&(t.hasSelection=null),i.poll()}),qe(r,"paste",function(c){if(ut(n,c)||ol(c,n))return;n.state.pasteIncoming=+new Date,i.fastPoll()});function o(c){if(ut(n,c))return;if(n.somethingSelected())zo({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var m=ll(n);zo({lineWise:!0,text:m.text}),c.type=="cut"?n.setSelections(m.ranges,null,be):(i.prevInput="",r.value=m.text.join(`
|
|
`),v(r))}else return;c.type=="cut"&&(n.state.cutIncoming=+new Date)}qe(r,"cut",o),qe(r,"copy",o),qe(e.scroller,"paste",function(c){if(Er(e,c)||ut(n,c))return;if(!r.dispatchEvent){n.state.pasteIncoming=+new Date,i.focus();return}var m=new Event("paste");m.clipboardData=c.clipboardData,r.dispatchEvent(m)}),qe(e.lineSpace,"selectstart",function(c){Er(e,c)||en(c)}),qe(r,"compositionstart",function(){var c=n.getCursor("from");i.composing&&i.composing.range.clear(),i.composing={start:c,range:n.markText(c,n.getCursor("to"),{className:"CodeMirror-composing"})}}),qe(r,"compositionend",function(){i.composing&&(i.poll(),i.composing.range.clear(),i.composing=null)})},di.prototype.createField=function(e){this.wrapper=cl(),this.textarea=this.wrapper.firstChild},di.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},di.prototype.prepareSelection=function(){var e=this.cm,t=e.display,i=e.doc,n=_r(e);if(e.options.moveInputWithCursor){var r=$t(e,i.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),c=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+c.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+c.left-o.left))}return n},di.prototype.showSelection=function(e){var t=this.cm,i=t.display;ye(i.cursorDiv,e.cursors),ye(i.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},di.prototype.reset=function(e){if(this.contextMenuPending||this.composing)return;var t=this.cm;if(t.somethingSelected()){this.prevInput="";var i=t.getSelection();this.textarea.value=i,t.state.focused&&v(this.textarea),ue&&se>=9&&(this.hasSelection=i)}else e||(this.prevInput=this.textarea.value="",ue&&se>=9&&(this.hasSelection=null))},di.prototype.getField=function(){return this.textarea},di.prototype.supportsTouch=function(){return!1},di.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!W||xe()!=this.textarea))try{this.textarea.focus()}catch(e){}},di.prototype.blur=function(){this.textarea.blur()},di.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},di.prototype.receivedFocus=function(){this.slowPoll()},di.prototype.slowPoll=function(){var e=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},di.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function i(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,i)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,i)},di.prototype.poll=function(){var e=this,t=this.cm,i=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||hi(i)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var r=i.value;if(r==n&&!t.somethingSelected())return!1;if(ue&&se>=9&&this.hasSelection===r||_&&/[\uf700-\uf7ff]/.test(r))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=r.charCodeAt(0);if(o==8203&&!n&&(n="\u200B"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var c=0,m=Math.min(n.length,r.length);c<m&&n.charCodeAt(c)==r.charCodeAt(c);)++c;return Ki(t,function(){hs(t,r.slice(c),n.length-c,null,e.composing?"*compose":null),r.length>1e3||r.indexOf(`
|
|
`)>-1?i.value=e.prevInput="":e.prevInput=r,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},di.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},di.prototype.onKeyPress=function(){ue&&se>=9&&(this.hasSelection=null),this.fastPoll()},di.prototype.onContextMenu=function(e){var t=this,i=t.cm,n=i.display,r=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=yi(i,e),c=n.scroller.scrollTop;if(!o||E)return;var m=i.options.resetSelectionOnContextMenu;m&&i.doc.sel.contains(o)==-1&&ui(i,Ui)(i.doc,Or(o),be);var b=r.style.cssText,w=t.wrapper.style.cssText,Z=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",r.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(e.clientY-Z.top-5)+"px; left: "+(e.clientX-Z.left-5)+`px;
|
|
z-index: 1000; background: `+(ue?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var oe;a&&(oe=window.scrollY),n.input.focus(),a&&window.scrollTo(null,oe),n.input.reset(),i.somethingSelected()||(r.value=t.prevInput=" "),t.contextMenuPending=Te,n.selForContextMenu=i.doc.sel,clearTimeout(n.detectingSelectAll);function Re(){if(r.selectionStart!=null){var Ue=i.somethingSelected(),Qe="\u200B"+(Ue?r.value:"");r.value="\u21DA",r.value=Qe,t.prevInput=Ue?"":"\u200B",r.selectionStart=1,r.selectionEnd=Qe.length,n.selForContextMenu=i.doc.sel}}function Te(){if(t.contextMenuPending!=Te)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=w,r.style.cssText=b,ue&&se<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=c),r.selectionStart!=null){(!ue||ue&&se<9)&&Re();var Ue=0,Qe=function(){n.selForContextMenu==i.doc.sel&&r.selectionStart==0&&r.selectionEnd>0&&t.prevInput=="\u200B"?ui(i,Is)(i):Ue++<10?n.detectingSelectAll=setTimeout(Qe,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(Qe,200)}}if(ue&&se>=9&&Re(),P){On(e);var Pe=function(){xn(window,"mouseup",Pe),setTimeout(Te,20)};qe(window,"mouseup",Pe)}else setTimeout(Te,50)},di.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},di.prototype.setUneditable=function(){},di.prototype.needsContentAttribute=!1;function iu(e,t){if(t=t?l(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 i=xe();t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function n(){e.value=m.getValue()}var r;if(e.form&&(qe(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;r=o.submit;try{var c=o.submit=function(){n(),o.submit=r,o.submit(),o.submit=c}}catch(b){}}t.finishInit=function(b){b.save=n,b.getTextArea=function(){return e},b.toTextArea=function(){b.toTextArea=isNaN,n(),e.parentNode.removeChild(b.getWrapperElement()),e.style.display="",e.form&&(xn(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=r))}},e.style.display="none";var m=ei(function(b){return e.parentNode.insertBefore(b,e.nextSibling)},t);return m}function ru(e){e.off=xn,e.on=qe,e.wheelEventPixels=ao,e.Doc=$i,e.splitLines=Si,e.countColumn=C,e.findColumn=me,e.isWordChar=Ce,e.Pass=Ae,e.signal=Bt,e.Line=Cr,e.changeEnd=wr,e.scrollbarModel=no,e.Pos=je,e.cmpPos=lt,e.modes=pt,e.mimeModes=Dt,e.resolveMode=In,e.getMode=ln,e.modeExtensions=rt,e.extendMode=Ve,e.copyState=at,e.startState=Ct,e.innerMode=Ye,e.commands=bo,e.keyMap=Qr,e.keyName=Qs,e.isModifierKey=zs,e.lookupKey=Wa,e.normalizeKeyMap=Ml,e.StringStream=Ge,e.SharedTextMarker=mo,e.TextMarker=ra,e.LineWidget=po,e.e_preventDefault=en,e.e_stopPropagation=Rn,e.e_stop=On,e.addClass=M,e.contains=K,e.rmClass=H,e.keyNames=aa}Jl(ei),$l(ei);var au="iter insert remove copy getEditor constructor".split(" ");for(var Qo in $i.prototype)$i.prototype.hasOwnProperty(Qo)&&he(au,Qo)<0&&(ei.prototype[Qo]=function(e){return function(){return e.apply(this.doc,arguments)}}($i.prototype[Qo]));return pn($i),ei.inputStyles={textarea:di,contenteditable:Ln},ei.defineMode=function(e){!ei.defaults.mode&&e!="null"&&(ei.defaults.mode=e),Ht.apply(this,arguments)},ei.defineMIME=Ut,ei.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ei.defineMIME("text/plain","null"),ei.defineExtension=function(e,t){ei.prototype[e]=t},ei.defineDocExtension=function(e,t){$i.prototype[e]=t},ei.fromTextArea=iu,ru(ei),ei.version="5.58.2",ei})},W6BS:function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H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MJ3Nm0ZxI5p3JjHk6RkbCgVfDsgN8ArP3N5juM5jdJD26xrOjq9TzCcfzkGYYcXrrbTz6xDs5OrrMeHzIjck+2eiA65OYdrjOPace5NzOw/hO10zW5ZDm27VDUxdLnMtwOctSk+NqtYDNzU3W1tfpdbvm2pc6bgE0u7IvsRUs56M4Yj6dmfJrOhwyGE8YjkaMxkNmszlpLDGbkeUx02RAlC2Y5UeUSZ+pdYyaz1k4Y9OdhE4D5dVoB6dZWbuLlneaXm2DPC1NR5BGCbF0CWVJEAQ0GnXanTb1sE69Xmdzc4uNjQ1ardZy4+dlN3fNF6+4R/9SP5eHJ0nMYhEh8TscDun3+0aoJuMJi8WCJMnRZgRZkJOR5FMKvWBz/QyN2gqqsEjTBE1q7iU5znZsfN83i2+32zSbTXq9HisrK6yurtJoNH4ympf49rYAvhzL1b5JSZqmZqGTyZT+4Jj+cd+4+mg4Yh7F5Kk0xqK4Jb7rVP87w1KGpU6nR6vVNMAEkPzrdDqGxX/McVsAb/dBsh0mKWgxnzMajxgOhhwf9+n3j5nNZ7RbbbrdrgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:function(De,L,s){"use strict";var re=s("rePB"),ie=s("Ff2n"),Ie=s("VTBJ"),ae=s("1OyB"),y=s("vuIU"),R=s("JX7q"),ue=s("Ji7U"),se=s("LK+K"),a=s("q1tI"),N=s("TSYQ"),I=s.n(N),E=s("sboe"),f=s("OZM5"),d=function(P){var te=P.prefixCls,H=P.level,le=P.isStart,ye=P.isEnd;if(!H)return null;for(var ge="".concat(te,"-indent-unit"),z=[],F=0;F<H;F+=1){var K;z.push(a.createElement("span",{key:F,className:I()(ge,(K={},Object(re.a)(K,"".concat(ge,"-start"),le[F+1]),Object(re.a)(K,"".concat(ge,"-end"),ye[F+1]),Object(re.a)(K,"".concat(ge,"-end-first-level"),!F&&ye[0]),K))}))}return a.createElement("span",{"aria-hidden":"true",className:"".concat(te,"-indent")},z)},h=d,p=s("815F"),T="open",W="close",_="---",g=function(J){Object(ue.a)(te,J);var P=Object(se.a)(te);function te(){var H;return Object(ae.a)(this,te),H=P.apply(this,arguments),H.state={dragNodeHighlight:!1},H.onSelectorClick=function(le){var ye=H.props.context.onNodeClick;ye(le,Object(p.b)(H.props)),H.isSelectable()?H.onSelect(le):H.onCheck(le)},H.onSelectorDoubleClick=function(le){var ye=H.props.context.onNodeDoubleClick;ye(le,Object(p.b)(H.props))},H.onSelect=function(le){if(H.isDisabled())return;var ye=H.props.context.onNodeSelect;le.preventDefault(),ye(le,Object(p.b)(H.props))},H.onCheck=function(le){if(H.isDisabled())return;var ye=H.props,ge=ye.disableCheckbox,z=ye.checked,F=H.props.context.onNodeCheck;if(!H.isCheckable()||ge)return;le.preventDefault();var K=!z;F(le,Object(p.b)(H.props),K)},H.onMouseEnter=function(le){var ye=H.props.context.onNodeMouseEnter;ye(le,Object(p.b)(H.props))},H.onMouseLeave=function(le){var ye=H.props.context.onNodeMouseLeave;ye(le,Object(p.b)(H.props))},H.onContextMenu=function(le){var ye=H.props.context.onNodeContextMenu;ye(le,Object(p.b)(H.props))},H.onDragStart=function(le){var ye=H.props.context.onNodeDragStart;le.stopPropagation(),H.setState({dragNodeHighlight:!0}),ye(le,Object(R.a)(H));try{le.dataTransfer.setData("text/plain","")}catch(ge){}},H.onDragEnter=function(le){var ye=H.props.context.onNodeDragEnter;le.preventDefault(),le.stopPropagation(),ye(le,Object(R.a)(H))},H.onDragOver=function(le){var ye=H.props.context.onNodeDragOver;le.preventDefault(),le.stopPropagation(),ye(le,Object(R.a)(H))},H.onDragLeave=function(le){var ye=H.props.context.onNodeDragLeave;le.stopPropagation(),ye(le,Object(R.a)(H))},H.onDragEnd=function(le){var ye=H.props.context.onNodeDragEnd;le.stopPropagation(),H.setState({dragNodeHighlight:!1}),ye(le,Object(R.a)(H))},H.onDrop=function(le){var ye=H.props.context.onNodeDrop;le.preventDefault(),le.stopPropagation(),H.setState({dragNodeHighlight:!1}),ye(le,Object(R.a)(H))},H.onExpand=function(le){var ye=H.props.context.onNodeExpand;ye(le,Object(p.b)(H.props))},H.setSelectHandle=function(le){H.selectHandle=le},H.getNodeState=function(){var le=H.props.expanded;return H.isLeaf()?null:le?T:W},H.hasChildren=function(){var le=H.props.eventKey,ye=H.props.context.keyEntities,ge=ye[le]||{},z=ge.children;return!!(z||[]).length},H.isLeaf=function(){var le=H.props,ye=le.isLeaf,ge=le.loaded,z=H.props.context.loadData,F=H.hasChildren();return ye===!1?!1:ye||!z&&!F||z&&ge&&!F},H.isDisabled=function(){var le=H.props.disabled,ye=H.props.context.disabled;return!!(ye||le)},H.isCheckable=function(){var le=H.props.checkable,ye=H.props.context.checkable;return!ye||le===!1?!1:ye},H.syncLoadData=function(le){var ye=le.expanded,ge=le.loading,z=le.loaded,F=H.props.context,K=F.loadData,xe=F.onNodeLoad;if(ge)return;K&&ye&&!H.isLeaf()&&(!H.hasChildren()&&!z&&xe(Object(p.b)(H.props)))},H.renderSwitcher=function(){var le=H.props,ye=le.expanded,ge=le.switcherIcon,z=H.props.context,F=z.prefixCls,K=z.switcherIcon,xe=ge||K;if(H.isLeaf())return a.createElement("span",{className:I()("".concat(F,"-switcher"),"".concat(F,"-switcher-noop"))},typeof xe=="function"?xe(Object(Ie.a)(Object(Ie.a)({},H.props),{},{isLeaf:!0})):xe);var M=I()("".concat(F,"-switcher"),"".concat(F,"-switcher_").concat(ye?T:W));return a.createElement("span",{onClick:H.onExpand,className:M},typeof xe=="function"?xe(Object(Ie.a)(Object(Ie.a)({},H.props),{},{isLeaf:!1})):xe)},H.renderCheckbox=function(){var le=H.props,ye=le.checked,ge=le.halfChecked,z=le.disableCheckbox,F=H.props.context.prefixCls,K=H.isDisabled(),xe=H.isCheckable();if(!xe)return null;var M=typeof xe!="boolean"?xe:null;return a.createElement("span",{className:I()("".concat(F,"-checkbox"),ye&&"".concat(F,"-checkbox-checked"),!ye&&ge&&"".concat(F,"-checkbox-indeterminate"),(K||z)&&"".concat(F,"-checkbox-disabled")),onClick:H.onCheck},M)},H.renderIcon=function(){var le=H.props.loading,ye=H.props.context.prefixCls;return a.createElement("span",{className:I()("".concat(ye,"-iconEle"),"".concat(ye,"-icon__").concat(H.getNodeState()||"docu"),le&&"".concat(ye,"-icon_loading"))})},H.renderSelector=function(){var le=H.state.dragNodeHighlight,ye=H.props,ge=ye.title,z=ye.selected,F=ye.icon,K=ye.loading,xe=ye.data,M=H.props.context,u=M.prefixCls,v=M.showIcon,A=M.icon,l=M.draggable,C=M.loadData,D=M.titleRender,he=H.isDisabled(),_e="".concat(u,"-node-content-wrapper"),Ae;if(v){var be=F||A;Ae=be?a.createElement("span",{className:I()("".concat(u,"-iconEle"),"".concat(u,"-icon__customize"))},typeof be=="function"?be(H.props):be):H.renderIcon()}else C&&K&&(Ae=H.renderIcon());var G;typeof ge=="function"?G=ge(xe):D?G=D(xe):G=ge;var $=a.createElement("span",{className:"".concat(u,"-title")},G);return a.createElement("span",{ref:H.setSelectHandle,title:typeof ge=="string"?ge:"",className:I()("".concat(_e),"".concat(_e,"-").concat(H.getNodeState()||"normal"),!he&&(z||le)&&"".concat(u,"-node-selected"),!he&&l&&"draggable"),draggable:!he&&l||void 0,"aria-grabbed":!he&&l||void 0,onMouseEnter:H.onMouseEnter,onMouseLeave:H.onMouseLeave,onContextMenu:H.onContextMenu,onClick:H.onSelectorClick,onDoubleClick:H.onSelectorDoubleClick,onDragStart:l?H.onDragStart:void 0},Ae,$)},H}return Object(y.a)(te,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var le=this.props.selectable,ye=this.props.context.selectable;return typeof le=="boolean"?le:ye}},{key:"render",value:function(){var le,ye=this.props,ge=ye.eventKey,z=ye.className,F=ye.style,K=ye.dragOver,xe=ye.dragOverGapTop,M=ye.dragOverGapBottom,u=ye.isLeaf,v=ye.isStart,A=ye.isEnd,l=ye.expanded,C=ye.selected,D=ye.checked,he=ye.halfChecked,_e=ye.loading,Ae=ye.domRef,be=ye.active,G=ye.onMouseMove,$=Object(ie.a)(ye,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),me=this.props.context,q=me.prefixCls,Oe=me.filterTreeNode,S=me.draggable,Y=me.keyEntities,k=this.isDisabled(),pe=Object(f.f)($),Me=Y[ge]||{},ce=Me.level,Ce=A[A.length-1];return a.createElement("div",Object.assign({ref:Ae,className:I()(z,"".concat(q,"-treenode"),(le={},Object(re.a)(le,"".concat(q,"-treenode-disabled"),k),Object(re.a)(le,"".concat(q,"-treenode-switcher-").concat(l?"open":"close"),!u),Object(re.a)(le,"".concat(q,"-treenode-checkbox-checked"),D),Object(re.a)(le,"".concat(q,"-treenode-checkbox-indeterminate"),he),Object(re.a)(le,"".concat(q,"-treenode-selected"),C),Object(re.a)(le,"".concat(q,"-treenode-loading"),_e),Object(re.a)(le,"".concat(q,"-treenode-active"),be),Object(re.a)(le,"".concat(q,"-treenode-leaf-last"),Ce),Object(re.a)(le,"drag-over",!k&&K),Object(re.a)(le,"drag-over-gap-top",!k&&xe),Object(re.a)(le,"drag-over-gap-bottom",!k&&M),Object(re.a)(le,"filter-node",Oe&&Oe(Object(p.b)(this.props))),le)),style:F,onDragEnter:S?this.onDragEnter:void 0,onDragOver:S?this.onDragOver:void 0,onDragLeave:S?this.onDragLeave:void 0,onDrop:S?this.onDrop:void 0,onDragEnd:S?this.onDragEnd:void 0,onMouseMove:G},pe),a.createElement(h,{prefixCls:q,level:ce,isStart:v,isEnd:A}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),te}(a.Component),j=function(P){return a.createElement(E.a.Consumer,null,function(te){return a.createElement(g,Object.assign({},P,{context:te}))})};j.displayName="TreeNode",j.defaultProps={title:_},j.isTreeNode=1;var Q=L.a=j},Xsq0:function(De,L,s){De.exports=s.p+"static/mainbanner.0a951716.jpg"},Y1PL:function(De,L,s){"use strict";s.r(L),s.d(L,"ResizableTextArea",function(){return he});var re=s("wx14"),ie=s("1OyB"),Ie=s("vuIU"),ae=s("Ji7U"),y=s("LK+K"),R=s("q1tI"),ue=s("VTBJ"),se=s("rePB"),a=s("Zm9Q"),N=s("Kwbf"),I=s("c+Xe"),E=s("m+aA"),f=s("bdgK"),d=new Map;function h(be){be.forEach(function(G){var $,me=G.target;($=d.get(me))===null||$===void 0||$.forEach(function(q){return q(me)})})}var p=new f.default(h),T=null,W=null;function _(be,G){d.has(be)||(d.set(be,new Set),p.observe(be)),d.get(be).add(G)}function g(be,G){d.has(be)&&(d.get(be).delete(G),d.get(be).size||(p.unobserve(be),d.delete(be)))}var j=function(be){Object(ae.a)($,be);var G=Object(y.a)($);function $(){return Object(ie.a)(this,$),G.apply(this,arguments)}return Object(Ie.a)($,[{key:"render",value:function(){return this.props.children}}]),$}(R.Component),Q=R.createContext(null);function J(be){var G=be.children,$=be.onBatchResize,me=R.useRef(0),q=R.useRef([]),Oe=R.useContext(Q),S=R.useCallback(function(Y,k,pe){me.current+=1;var Me=me.current;q.current.push({size:Y,element:k,data:pe}),Promise.resolve().then(function(){Me===me.current&&($==null||$(q.current),q.current=[])}),Oe==null||Oe(Y,k,pe)},[$,Oe]);return R.createElement(Q.Provider,{value:S},G)}function P(be){var G=be.children,$=be.disabled,me=R.useRef(null),q=R.useRef(null),Oe=R.useContext(Q),S=R.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Y=R.isValidElement(G)&&Object(I.c)(G),k=Y?G.ref:null,pe=R.useMemo(function(){return Object(I.a)(k,me)},[k,me]),Me=R.useRef(be);Me.current=be;var ce=R.useCallback(function(Ce){var Fe=Me.current,U=Fe.onResize,we=Fe.data,Ne=Ce.getBoundingClientRect(),ke=Ne.width,$e=Ne.height,Xe=Ce.offsetWidth,st=Ce.offsetHeight,Ze=Math.floor(ke),yt=Math.floor($e);if(S.current.width!==Ze||S.current.height!==yt||S.current.offsetWidth!==Xe||S.current.offsetHeight!==st){var At={width:Ze,height:yt,offsetWidth:Xe,offsetHeight:st};S.current=At;var Lt=Xe===Math.round(ke)?ke:Xe,qe=st===Math.round($e)?$e:st,Xn=Object(ue.a)(Object(ue.a)({},At),{},{offsetWidth:Lt,offsetHeight:qe});Oe==null||Oe(Xn,Ce,we),U&&Promise.resolve().then(function(){U(Xn,Ce)})}},[]);return R.useEffect(function(){var Ce=Object(E.a)(me.current)||Object(E.a)(q.current);return Ce&&!$&&_(Ce,ce),function(){return g(Ce,ce)}},[me.current,$]),R.createElement(j,{ref:q},Y?R.cloneElement(G,{ref:pe}):G)}var te="rc-observer-key";function H(be){var G=be.children,$=Object(a.a)(G);return $.map(function(me,q){var Oe=(me==null?void 0:me.key)||"".concat(te,"-").concat(q);return R.createElement(P,Object(re.a)({},be,{key:Oe}),me)})}H.Collection=J;var le=H,ye=s("bT9E"),ge=s("TSYQ"),z=s.n(ge),F=`
|
|
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
|
|
`,K=["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"],xe={},M;function u(be){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$=be.getAttribute("id")||be.getAttribute("data-reactid")||be.getAttribute("name");if(G&&xe[$])return xe[$];var me=window.getComputedStyle(be),q=me.getPropertyValue("box-sizing")||me.getPropertyValue("-moz-box-sizing")||me.getPropertyValue("-webkit-box-sizing"),Oe=parseFloat(me.getPropertyValue("padding-bottom"))+parseFloat(me.getPropertyValue("padding-top")),S=parseFloat(me.getPropertyValue("border-bottom-width"))+parseFloat(me.getPropertyValue("border-top-width")),Y=K.map(function(pe){return"".concat(pe,":").concat(me.getPropertyValue(pe))}).join(";"),k={sizingStyle:Y,paddingSize:Oe,borderSize:S,boxSizing:q};return G&&$&&(xe[$]=k),k}function v(be){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;M||(M=document.createElement("textarea"),M.setAttribute("tab-index","-1"),M.setAttribute("aria-hidden","true"),document.body.appendChild(M)),be.getAttribute("wrap")?M.setAttribute("wrap",be.getAttribute("wrap")):M.removeAttribute("wrap");var q=u(be,G),Oe=q.paddingSize,S=q.borderSize,Y=q.boxSizing,k=q.sizingStyle;M.setAttribute("style","".concat(k,";").concat(F)),M.value=be.value||be.placeholder||"";var pe=Number.MIN_SAFE_INTEGER,Me=Number.MAX_SAFE_INTEGER,ce=M.scrollHeight,Ce;if(Y==="border-box"?ce+=S:Y==="content-box"&&(ce-=Oe),$!==null||me!==null){M.value=" ";var Fe=M.scrollHeight-Oe;$!==null&&(pe=Fe*$,Y==="border-box"&&(pe=pe+Oe+S),ce=Math.max(pe,ce)),me!==null&&(Me=Fe*me,Y==="border-box"&&(Me=Me+Oe+S),Ce=ce>Me?"":"hidden",ce=Math.min(Me,ce))}return{height:ce,minHeight:pe,maxHeight:Me,overflowY:Ce,resize:"none"}}var A=s("Gytx"),l=s.n(A),C;(function(be){be[be.NONE=0]="NONE",be[be.RESIZING=1]="RESIZING",be[be.RESIZED=2]="RESIZED"})(C||(C={}));var D=function(be){Object(ae.a)($,be);var G=Object(y.a)($);function $(me){var q;return Object(ie.a)(this,$),q=G.call(this,me),q.nextFrameActionId=void 0,q.resizeFrameId=void 0,q.textArea=void 0,q.saveTextArea=function(Oe){q.textArea=Oe},q.handleResize=function(Oe){var S=q.state.resizeStatus,Y=q.props,k=Y.autoSize,pe=Y.onResize;if(S!==C.NONE)return;typeof pe=="function"&&pe(Oe),k&&q.resizeOnNextFrame()},q.resizeOnNextFrame=function(){cancelAnimationFrame(q.nextFrameActionId),q.nextFrameActionId=requestAnimationFrame(q.resizeTextarea)},q.resizeTextarea=function(){var Oe=q.props.autoSize;if(!Oe||!q.textArea)return;var S=Oe.minRows,Y=Oe.maxRows,k=v(q.textArea,!1,S,Y);q.setState({textareaStyles:k,resizeStatus:C.RESIZING},function(){cancelAnimationFrame(q.resizeFrameId),q.resizeFrameId=requestAnimationFrame(function(){q.setState({resizeStatus:C.RESIZED},function(){q.resizeFrameId=requestAnimationFrame(function(){q.setState({resizeStatus:C.NONE}),q.fixFirefoxAutoScroll()})})})})},q.renderTextArea=function(){var Oe=q.props,S=Oe.prefixCls,Y=S===void 0?"rc-textarea":S,k=Oe.autoSize,pe=Oe.onResize,Me=Oe.className,ce=Oe.disabled,Ce=q.state,Fe=Ce.textareaStyles,U=Ce.resizeStatus,we=Object(ye.a)(q.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Ne=z()(Y,Me,Object(se.a)({},"".concat(Y,"-disabled"),ce));"value"in we&&(we.value=we.value||"");var ke=Object(ue.a)(Object(ue.a)(Object(ue.a)({},q.props.style),Fe),U===C.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return R.createElement(le,{onResize:q.handleResize,disabled:!(k||pe)},R.createElement("textarea",Object(re.a)({},we,{className:Ne,style:ke,ref:q.saveTextArea})))},q.state={textareaStyles:{},resizeStatus:C.NONE},q}return Object(Ie.a)($,[{key:"componentDidUpdate",value:function(q){(q.value!==this.props.value||!l()(q.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var q=this.textArea.selectionStart,Oe=this.textArea.selectionEnd;this.textArea.setSelectionRange(q,Oe)}}catch(S){}}},{key:"render",value:function(){return this.renderTextArea()}}]),$}(R.Component),he=D,_e=function(be){Object(ae.a)($,be);var G=Object(y.a)($);function $(me){var q;Object(ie.a)(this,$),q=G.call(this,me),q.resizableTextArea=void 0,q.focus=function(){q.resizableTextArea.textArea.focus()},q.saveTextArea=function(S){q.resizableTextArea=S},q.handleChange=function(S){var Y=q.props.onChange;q.setValue(S.target.value,function(){q.resizableTextArea.resizeTextarea()}),Y&&Y(S)},q.handleKeyDown=function(S){var Y=q.props,k=Y.onPressEnter,pe=Y.onKeyDown;S.keyCode===13&&k&&k(S),pe&&pe(S)};var Oe=typeof me.value=="undefined"||me.value===null?me.defaultValue:me.value;return q.state={value:Oe},q}return Object(Ie.a)($,[{key:"setValue",value:function(q,Oe){"value"in this.props||this.setState({value:q},Oe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return R.createElement(he,Object(re.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(q){return"value"in q?{value:q.value}:null}}]),$}(R.Component),Ae=L.default=_e},ZW9T:function(De,L,s){"use strict";s.d(L,"a",function(){return A});var re=s("k1fw"),ie=s("oBTY"),Ie=s("miYZ"),ae=s("tsqr"),y=s("rAM+"),R=s("tJVT"),ue=s("PpiC"),se=s("q1tI"),a=s.n(se),N=s("bdgK"),I=s("9og8"),E=s("WmNS"),f=s.n(E),d={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},h={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},p={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},T={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
`)}]},W=s("5VLF"),_=s.n(W),g={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},j=function(C,D){return D.map(function(he){return{label:he,kind:C.languages.CompletionItemKind.Keyword,insertText:he}})},Q=function(C){return Object.keys(g.tables).map(function(D){return{label:D,kind:C.languages.CompletionItemKind.Variable,insertText:D}})},J=function(C,D){var he=g.tables[C];return he?he.map(function(_e){return{label:_e,kind:D.languages.CompletionItemKind.Field,insertText:_e}}):[]};function P(l,C,D,he,_e){var Ae=C.getWordUntilPosition(D),be={startLineNumber:D.lineNumber,endLineNumber:D.lineNumber,startColumn:Ae.startColumn,endColumn:Ae.endColumn},G=he.map(function($){return{label:$,kind:l.languages.CompletionItemKind.Keyword,insertText:$,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:be}});return _e.map(function($){G.push(Object(re.a)(Object(re.a)({},$),{},{range:be}))}),G}var te=function(l){g.languages.map(function(_e){return l.languages.registerDocumentFormattingEditProvider(_e,{provideDocumentFormattingEdits:function(be,G,$){return Object(I.a)(f.a.mark(function me(){var q;return f.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return q=_()(be.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1}),S.abrupt("return",[{range:be.getFullModelRange(),text:q}]);case 2:case"end":return S.stop()}},me)}))()}}),_e});var C=p.quickKey.map(function(_e){return{label:_e.label,kind:l.languages.CompletionItemKind.Method,insertText:_e.content,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),D=T.quickKey.map(function(_e){return{label:_e.label,kind:l.languages.CompletionItemKind.Method,insertText:_e.content,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet}}),he=h.quickKey.map(function(_e){return{label:_e.label,kind:l.languages.CompletionItemKind.Method,insertText:_e.content,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet}});l.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ae,be){var G=Ae.getWordUntilPosition(be),$={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:G.startColumn,endColumn:G.endColumn},me=Ae.getLineContent(be.lineNumber).substring(G.startColumn-2,G.endColumn);return{suggestions:[].concat(Object(ie.a)(p.keywords.map(function(q){return{label:q,kind:l.languages.CompletionItemKind.Function,documentation:q,insertText:q,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$}})),Object(ie.a)(p.quickKey.map(function(q){return{label:q.label,kind:l.languages.CompletionItemKind.Function,documentation:q.content,insertText:me.startsWith("#")?q.content.replace(/#/,""):q.content,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$}})))}}}),l.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ae,be){var G=Ae.getWordUntilPosition(be),$={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:G.startColumn,endColumn:G.endColumn};return{suggestions:Object(ie.a)(d.keywords.map(function(me){return{label:me,kind:l.languages.CompletionItemKind.Function,documentation:me,insertText:me,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$}}))}}}),l.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ae,be){var G=Ae.getWordUntilPosition(be),$={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:G.startColumn,endColumn:G.endColumn},me=Ae.getLineContent(be.lineNumber).substring(G.startColumn-2,G.endColumn);return{suggestions:[].concat(Object(ie.a)(h.keywords.map(function(q){return{label:q,kind:l.languages.CompletionItemKind.Function,documentation:q,insertText:q,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$}})),Object(ie.a)(h.quickKey.map(function(q){return{label:q.label,kind:l.languages.CompletionItemKind.Function,documentation:q.content,insertText:me.startsWith("#")?q.content.replace(/#/,""):q.content,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$}})))}}}),l.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ae,be){var G=Ae.getWordUntilPosition(be),$={startLineNumber:be.lineNumber,endLineNumber:be.lineNumber,startColumn:G.startColumn,endColumn:G.endColumn},me=Ae.getLineContent(be.lineNumber).substring(G.startColumn-2,G.endColumn);return{suggestions:[].concat(Object(ie.a)(T.keywords.map(function(q){return{label:q,kind:l.languages.CompletionItemKind.Function,documentation:q,insertText:q,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$}})),Object(ie.a)(T.quickKey.map(function(q){return{label:q.label,kind:l.languages.CompletionItemKind.Function,documentation:q.content,insertText:me.startsWith("#")?q.content.replace(/#/,""):q.content,insertTextRules:l.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:$}})))}}})},H="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",le=s("fjLI"),ye=s("LvDl"),ge=s("+ua5");function z(l){return/^\d+$/.test(l)?"".concat(l,"px"):l}function F(){}var K=!1,xe={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python"};function M(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=l;if(Array.isArray(l)){for(var D=0;D<l.length;D++){var he=xe[l[D]];if(he)return he}return C[0]}return xe[C]||C}var u=null,v=L.b=function(l){var C=l.width,D=C===void 0?"100%":C,he=l.height,_e=he===void 0?"100%":he,Ae=l.value,be=l.language,G=be===void 0?"javascript":be,$=l.style,me=$===void 0?{}:$,q=l.options,Oe=q===void 0?{}:q,S=l.overrideServices,Y=S===void 0?{}:S,k=l.theme,pe=k===void 0?"vs-dark":k,Me=l.onEditBlur,ce=l.onSave,Ce=l.autoHeight,Fe=Ce===void 0?!1:Ce,U=l.forbidCopy,we=U===void 0?!1:U,Ne=l.onChange,ke=Ne===void 0?F:Ne,$e=l.editorDidMount,Xe=$e===void 0?F:$e,st=l.onFocus,Ze=st===void 0?F:st,yt=l.filename,At=yt===void 0?"educoder.txt":yt,Lt=l.errorLine,qe=l.errorContent,Xn=qe===void 0?"":qe,xn=Object(ue.a)(l,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename","errorLine","errorContent"]),Bt=Object(se.useRef)(),ut=Object(se.useRef)({}),Wt=Object(se.useRef)(),It=Object(se.useRef)(),pn=Object(se.useRef)(!1),en=Object(se.useRef)(),Rn=Object(se.useState)(!1),oi=Object(R.a)(Rn,2),On=oi[0],si=oi[1];function Ti(){var rt;return Bt.current&&(rt=new N.default(function(Ve){var at=Object(y.a)(Ve),Ye;try{for(at.s();!(Ye=at.n()).done;){var Ct=Ye.value;(Ct.target.offsetHeight>0||Ct.target.offsetWidth>0)&&ut.current.instance.layout()}}catch(Ge){at.e(Ge)}finally{at.f()}}),rt.observe(Bt.current)),rt}function li(){ae.b.warn(decodeURIComponent(H))}var ir=function(){var Ve=ut.current.instance;if(Ae!=null&&Ve&&On){var at=Ve.getModel();at&&Ae!==at.getValue()&&(K=!0,at.setValue(Ae),Ve.layout(),K=!1)}};Object(se.useEffect)(function(){It.current&&clearTimeout(It.current),It.current=setTimeout(function(){ir()},500)},[Ae,On,ut.current]),Object(se.useEffect)(function(){if(Lt&&ut.current&&ut.current.instance){var rt=ut.current.instance;rt.changeViewZones(function(at){var Ye=document.createElement("div");Ye.style.padding="10px 20px",Ye.style.width="calc(100% - 20px)",Ye.className="my-error-line-wrp",Ye.innerHTML=Xn,at.addZone({afterLineNumber:Lt||11,heightInLines:3,domNode:Ye})});var Ve={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};rt.addOverlayWidget(Ve),rt.revealPositionInCenter({lineNumber:20,column:1})}},[Lt,ut.current,On]);function rr(){var rt=ut.current.instance;if(rt){var Ve=rt.getSelection(),at=ut.current.pastePos||{},Ye=new u.Range(at.startLineNumber||Ve.endLineNumber,at.startColumn||Ve.endColumn,at.endLineNumber||Ve.endLineNumber,at.endColumn||Ve.endColumn);setTimeout(function(){rt.executeEdits("",[{range:Ye,text:""}])},300)}}function Yi(rt){(window.navigator.platform.match("Mac")?rt.metaKey:rt.ctrlKey)&&rt.keyCode==83&&(rt.preventDefault(),ce())}var Pi=function(){if(Fe&&ut.current.instance){var Ve=ut.current.instance.getContentHeight();In(Ve<_e?_e:Ve)}else In(_e)};function Si(rt){var Ve=document.createEvent("MouseEvents");Ve.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),rt.dispatchEvent(Ve)}function hi(rt,Ve){var at=window.URL||window.webkitURL||window,Ye=new Blob([Ve]),Ct=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ct.href=at.createObjectURL(Ye),Ct.download=rt,Si(Ct)}Object(se.useEffect)(function(){Pi()},[Pi]),Object(se.useEffect)(function(){Bt.current&&!On&&Promise.all([s.e(15),s.e(27)]).then(s.t.bind(null,"M/lh",7)).then(function(rt){try{u=rt,ut.current.instance=u.editor.create(Bt.current,{value:Ae,language:M(G),theme:pe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Y);var Ve=ut.current.instance,at=le.d._menuItems,Ye=Object(ie.a)(at).find(function(Ot){return Ot[0]._debugName=="EditorContext"}),Ct=Ye[1],Ge=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ze=function(kt,Nt){var Kt=kt._first;do{var un,Hn,je=Nt.includes((un=Kt.element)===null||un===void 0||((Hn=un.command)===null||Hn===void 0)?void 0:Hn.id);je&&kt._remove(Kt)}while(Kt=Kt.next)};if(Xe(Ve,u),setTimeout(function(){Pi(),ut.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){hi(At||"educoder.txt",Ve.getValue())}}),Ve.getDomNode().addEventListener("input",function(){Wt.current.autoFormat&&Ve.getAction("editor.action.formatDocument").run()})},500),ut.current.subscription=Ve.onDidChangeModelContent(function(Ot){pn.current?clearTimeout(en.current):(Pi(),ke(Ve.getValue(),Ot)),en.current=setTimeout(function(){pn.current=!1},500)}),window.Monaco||te(u,M(G)),we&&(ze(Ct,Ge),Bt.current.classList.add("noCopyPaste"),Ve.onKeyDown(function(Ot){var kt=Ot.keyCode,Nt=Ot.ctrlKey,Kt=Ot.metaKey;(kt===33||kt===52)&&(Kt||Nt)&&(li(),Ot.preventDefault())})),window.Monaco=u,Me&&Ve.onDidBlurEditorWidget(function(){Me(Ve.getValue())}),Ze&&Ve.onDidFocusEditorText(function(){Ze(Ve.getValue())}),we){Ve.addCommand(u.KeyMod.CtrlCmd|u.KeyCode.KEY_V,function(){return li(),null}),Ve.onDidPaste(function(Ot){ut.current.pastePos=Ot});try{window.addEventListener("paste",rr)}catch(Ot){}}var Zt=Ti();return si(!0),function(){var Ot=ut.current.instance;Ot.dispose();var kt=Ot.getModel();kt&&kt.dispose(),ut.current.subscription&&ut.current.subscription.dispose(),we&&window.removeEventListener("paste",rr),Zt.unobserve(Bt.current)}}catch(Ot){}})},[]),Object(se.useEffect)(function(){var rt=ut.current.instance;if(rt&&On)return document.addEventListener("keydown",Yi,!1),function(){document.removeEventListener("keydown",Yi)}},[ce,On]),Object(se.useEffect)(function(){var rt=ut.current.instance;if(rt&&On){var Ve=M(G);u.editor.setModelLanguage(rt.getModel(),Ve),console.log("language:",G,rt.getModel(),Ve)}},[G,On]),Object(se.useEffect)(function(){var rt=ut.current.instance;rt&&On&&u.editor.setTheme(pe)},[pe,On]),Object(se.useEffect)(function(){var rt=ut.current.instance;Wt.current=Oe,rt&&On&&(rt.updateOptions(Object(re.a)({},Oe)),setTimeout(function(){rt.getModel().updateOptions(Object(re.a)({},Oe))},200))},[JSON.stringify(Oe),On]),Object(se.useEffect)(function(){var rt=ut.current.instance;rt&&On&&rt.layout()},[D,_e,On]);var mr=Object(se.useState)(z(D)),ht=Object(R.a)(mr,2),We=ht[0],pt=ht[1],Dt=Object(se.useState)(z(_e)),Ht=Object(R.a)(Dt,2),Ut=Ht[0],In=Ht[1],ln=Object(re.a)(Object(re.a)({},me),{},{width:We,height:Ut});return a.a.createElement("div",{className:"my-monaco-editor",ref:Bt,style:ln})};function A(l){var C=l.width,D=C===void 0?"100%":C,he=l.height,_e=he===void 0?"100%":he,Ae=l.original,be=l.modified,G=l.language,$=l.options,me=$===void 0?{}:$,q=Object(se.useRef)(),Oe=Object(se.useState)(null),S=Object(R.a)(Oe,2),Y=S[0],k=S[1];function pe(Fe){var U;return q.current&&(U=new N.default(function(we){var Ne=Object(y.a)(we),ke;try{for(Ne.s();!(ke=Ne.n()).done;){var $e=ke.value;($e.target.offsetHeight>0||$e.target.offsetWidth>0)&&Fe.layout()}}catch(Xe){Ne.e(Xe)}finally{Ne.f()}}),U.observe(q.current)),U}Object(se.useEffect)(function(){q.current&&Promise.all([s.e(15),s.e(27)]).then(s.t.bind(null,"M/lh",7)).then(function(Fe){u=Fe;var U=u.editor.createDiffEditor(q.current,Object(re.a)(Object(re.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},me),{},{wordWrap:!0}));k(U);var we=pe(U);return function(){U.dispose();var Ne=U.getModel();Ne&&Ne.dispose(),we.unobserve(q.current)}})},[]),Object(se.useEffect)(function(){Y&&Y.setModel({original:u.editor.createModel(Ae,G),modified:u.editor.createModel(be,G)})},[Ae,be,G,Y]);var Me=z(D),ce=z(_e),Ce={width:Me,height:ce};return a.a.createElement("div",{className:"my-diff-editor",ref:q,style:Ce})}},ZpRC:function(De,L,s){"use strict";function re(I){return typeof I=="object"&&I!=null&&I.nodeType===1}function ie(I,E){return(!E||I!=="hidden")&&I!=="visible"&&I!=="clip"}function Ie(I,E){if(I.clientHeight<I.scrollHeight||I.clientWidth<I.scrollWidth){var f=getComputedStyle(I,null);return ie(f.overflowY,E)||ie(f.overflowX,E)||function(d){var h=function(p){if(!p.ownerDocument||!p.ownerDocument.defaultView)return null;try{return p.ownerDocument.defaultView.frameElement}catch(T){return null}}(d);return!!h&&(h.clientHeight<d.scrollHeight||h.clientWidth<d.scrollWidth)}(I)}return!1}function ae(I,E,f,d,h,p,T,W){return p<I&&T>E||p>I&&T<E?0:p<=I&&W<=f||T>=E&&W>=f?p-I-d:T>E&&W<f||p<I&&W>f?T-E+h:0}var y=function(I,E){var f=window,d=E.scrollMode,h=E.block,p=E.inline,T=E.boundary,W=E.skipOverflowHiddenElements,_=typeof T=="function"?T:function(Fe){return Fe!==T};if(!re(I))throw new TypeError("Invalid target");for(var g=document.scrollingElement||document.documentElement,j=[],Q=I;re(Q)&&_(Q);){if((Q=Q.parentElement)===g){j.push(Q);break}Q!=null&&Q===document.body&&Ie(Q)&&!Ie(document.documentElement)||Q!=null&&Ie(Q,W)&&j.push(Q)}for(var J=f.visualViewport?f.visualViewport.width:innerWidth,P=f.visualViewport?f.visualViewport.height:innerHeight,te=window.scrollX||pageXOffset,H=window.scrollY||pageYOffset,le=I.getBoundingClientRect(),ye=le.height,ge=le.width,z=le.top,F=le.right,K=le.bottom,xe=le.left,M=h==="start"||h==="nearest"?z:h==="end"?K:z+ye/2,u=p==="center"?xe+ge/2:p==="end"?F:xe,v=[],A=0;A<j.length;A++){var l=j[A],C=l.getBoundingClientRect(),D=C.height,he=C.width,_e=C.top,Ae=C.right,be=C.bottom,G=C.left;if(d==="if-needed"&&z>=0&&xe>=0&&K<=P&&F<=J&&z>=_e&&K<=be&&xe>=G&&F<=Ae)return v;var $=getComputedStyle(l),me=parseInt($.borderLeftWidth,10),q=parseInt($.borderTopWidth,10),Oe=parseInt($.borderRightWidth,10),S=parseInt($.borderBottomWidth,10),Y=0,k=0,pe="offsetWidth"in l?l.offsetWidth-l.clientWidth-me-Oe:0,Me="offsetHeight"in l?l.offsetHeight-l.clientHeight-q-S:0;if(g===l)Y=h==="start"?M:h==="end"?M-P:h==="nearest"?ae(H,H+P,P,q,S,H+M,H+M+ye,ye):M-P/2,k=p==="start"?u:p==="center"?u-J/2:p==="end"?u-J:ae(te,te+J,J,me,Oe,te+u,te+u+ge,ge),Y=Math.max(0,Y+H),k=Math.max(0,k+te);else{Y=h==="start"?M-_e-q:h==="end"?M-be+S+Me:h==="nearest"?ae(_e,be,D,q,S+Me,M,M+ye,ye):M-(_e+D/2)+Me/2,k=p==="start"?u-G-me:p==="center"?u-(G+he/2)+pe/2:p==="end"?u-Ae+Oe+pe:ae(G,Ae,he,me,Oe+pe,u,u+ge,ge);var ce=l.scrollLeft,Ce=l.scrollTop;M+=Ce-(Y=Math.max(0,Math.min(Ce+Y,l.scrollHeight-D+Me))),u+=ce-(k=Math.max(0,Math.min(ce+k,l.scrollWidth-he+pe)))}v.push({el:l,top:Y,left:k})}return v};function R(I){return I===Object(I)&&Object.keys(I).length!==0}function ue(I,E){E===void 0&&(E="auto");var f="scrollBehavior"in document.body.style;I.forEach(function(d){var h=d.el,p=d.top,T=d.left;h.scroll&&f?h.scroll({top:p,left:T,behavior:E}):(h.scrollTop=p,h.scrollLeft=T)})}function se(I){return I===!1?{block:"end",inline:"nearest"}:R(I)?I:{block:"start",inline:"nearest"}}function a(I,E){var f=!I.ownerDocument.documentElement.contains(I);if(R(E)&&typeof E.behavior=="function")return E.behavior(f?[]:y(I,E));if(f)return;var d=se(E);return ue(y(I,d),d.behavior)}var N=L.a=a},Zss7:function(De,L,s){var re;(function(ie){var Ie=/^\s+/,ae=/\s+$/,y=0,R=ie.round,ue=ie.min,se=ie.max,a=ie.random;function N(S,Y){if(S=S||"",Y=Y||{},S instanceof N)return S;if(!(this instanceof N))return new N(S,Y);var k=I(S);this._originalInput=S,this._r=k.r,this._g=k.g,this._b=k.b,this._a=k.a,this._roundA=R(100*this._a)/100,this._format=Y.format||k.format,this._gradientType=Y.gradientType,this._r<1&&(this._r=R(this._r)),this._g<1&&(this._g=R(this._g)),this._b<1&&(this._b=R(this._b)),this._ok=k.ok,this._tc_id=y++}N.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var S=this.toRgb();return(S.r*299+S.g*587+S.b*114)/1e3},getLuminance:function(){var S=this.toRgb(),Y,k,pe,Me,ce,Ce;return Y=S.r/255,k=S.g/255,pe=S.b/255,Y<=.03928?Me=Y/12.92:Me=ie.pow((Y+.055)/1.055,2.4),k<=.03928?ce=k/12.92:ce=ie.pow((k+.055)/1.055,2.4),pe<=.03928?Ce=pe/12.92:Ce=ie.pow((pe+.055)/1.055,2.4),.2126*Me+.7152*ce+.0722*Ce},setAlpha:function(S){return this._a=v(S),this._roundA=R(100*this._a)/100,this},toHsv:function(){var S=h(this._r,this._g,this._b);return{h:S.h*360,s:S.s,v:S.v,a:this._a}},toHsvString:function(){var S=h(this._r,this._g,this._b),Y=R(S.h*360),k=R(S.s*100),pe=R(S.v*100);return this._a==1?"hsv("+Y+", "+k+"%, "+pe+"%)":"hsva("+Y+", "+k+"%, "+pe+"%, "+this._roundA+")"},toHsl:function(){var S=f(this._r,this._g,this._b);return{h:S.h*360,s:S.s,l:S.l,a:this._a}},toHslString:function(){var S=f(this._r,this._g,this._b),Y=R(S.h*360),k=R(S.s*100),pe=R(S.l*100);return this._a==1?"hsl("+Y+", "+k+"%, "+pe+"%)":"hsla("+Y+", "+k+"%, "+pe+"%, "+this._roundA+")"},toHex:function(S){return T(this._r,this._g,this._b,S)},toHexString:function(S){return"#"+this.toHex(S)},toHex8:function(S){return W(this._r,this._g,this._b,this._a,S)},toHex8String:function(S){return"#"+this.toHex8(S)},toRgb:function(){return{r:R(this._r),g:R(this._g),b:R(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+R(this._r)+", "+R(this._g)+", "+R(this._b)+")":"rgba("+R(this._r)+", "+R(this._g)+", "+R(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:R(A(this._r,255)*100)+"%",g:R(A(this._g,255)*100)+"%",b:R(A(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+R(A(this._r,255)*100)+"%, "+R(A(this._g,255)*100)+"%, "+R(A(this._b,255)*100)+"%)":"rgba("+R(A(this._r,255)*100)+"%, "+R(A(this._g,255)*100)+"%, "+R(A(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:M[T(this._r,this._g,this._b,!0)]||!1},toFilter:function(S){var Y="#"+_(this._r,this._g,this._b,this._a),k=Y,pe=this._gradientType?"GradientType = 1, ":"";if(S){var Me=N(S);k="#"+_(Me._r,Me._g,Me._b,Me._a)}return"progid:DXImageTransform.Microsoft.gradient("+pe+"startColorstr="+Y+",endColorstr="+k+")"},toString:function(S){var Y=!!S;S=S||this._format;var k=!1,pe=this._a<1&&this._a>=0,Me=!Y&&pe&&(S==="hex"||S==="hex6"||S==="hex3"||S==="hex4"||S==="hex8"||S==="name");return Me?S==="name"&&this._a===0?this.toName():this.toRgbString():(S==="rgb"&&(k=this.toRgbString()),S==="prgb"&&(k=this.toPercentageRgbString()),(S==="hex"||S==="hex6")&&(k=this.toHexString()),S==="hex3"&&(k=this.toHexString(!0)),S==="hex4"&&(k=this.toHex8String(!0)),S==="hex8"&&(k=this.toHex8String()),S==="name"&&(k=this.toName()),S==="hsl"&&(k=this.toHslString()),S==="hsv"&&(k=this.toHsvString()),k||this.toHexString())},clone:function(){return N(this.toString())},_applyModification:function(S,Y){var k=S.apply(null,[this].concat([].slice.call(Y)));return this._r=k._r,this._g=k._g,this._b=k._b,this.setAlpha(k._a),this},lighten:function(){return this._applyModification(J,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(te,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(j,arguments)},greyscale:function(){return this._applyModification(Q,arguments)},spin:function(){return this._applyModification(H,arguments)},_applyCombination:function(S,Y){return S.apply(null,[this].concat([].slice.call(Y)))},analogous:function(){return this._applyCombination(F,arguments)},complement:function(){return this._applyCombination(le,arguments)},monochromatic:function(){return this._applyCombination(K,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(ye,arguments)},tetrad:function(){return this._applyCombination(ge,arguments)}},N.fromRatio=function(S,Y){if(typeof S=="object"){var k={};for(var pe in S)S.hasOwnProperty(pe)&&(pe==="a"?k[pe]=S[pe]:k[pe]=Ae(S[pe]));S=k}return N(S,Y)};function I(S){var Y={r:0,g:0,b:0},k=1,pe=null,Me=null,ce=null,Ce=!1,Fe=!1;return typeof S=="string"&&(S=q(S)),typeof S=="object"&&(me(S.r)&&me(S.g)&&me(S.b)?(Y=E(S.r,S.g,S.b),Ce=!0,Fe=String(S.r).substr(-1)==="%"?"prgb":"rgb"):me(S.h)&&me(S.s)&&me(S.v)?(pe=Ae(S.s),Me=Ae(S.v),Y=p(S.h,pe,Me),Ce=!0,Fe="hsv"):me(S.h)&&me(S.s)&&me(S.l)&&(pe=Ae(S.s),ce=Ae(S.l),Y=d(S.h,pe,ce),Ce=!0,Fe="hsl"),S.hasOwnProperty("a")&&(k=S.a)),k=v(k),{ok:Ce,format:S.format||Fe,r:ue(255,se(Y.r,0)),g:ue(255,se(Y.g,0)),b:ue(255,se(Y.b,0)),a:k}}function E(S,Y,k){return{r:A(S,255)*255,g:A(Y,255)*255,b:A(k,255)*255}}function f(S,Y,k){S=A(S,255),Y=A(Y,255),k=A(k,255);var pe=se(S,Y,k),Me=ue(S,Y,k),ce,Ce,Fe=(pe+Me)/2;if(pe==Me)ce=Ce=0;else{var U=pe-Me;Ce=Fe>.5?U/(2-pe-Me):U/(pe+Me);switch(pe){case S:ce=(Y-k)/U+(Y<k?6:0);break;case Y:ce=(k-S)/U+2;break;case k:ce=(S-Y)/U+4;break}ce/=6}return{h:ce,s:Ce,l:Fe}}function d(S,Y,k){var pe,Me,ce;S=A(S,360),Y=A(Y,100),k=A(k,100);function Ce(we,Ne,ke){return ke<0&&(ke+=1),ke>1&&(ke-=1),ke<1/6?we+(Ne-we)*6*ke:ke<1/2?Ne:ke<2/3?we+(Ne-we)*(2/3-ke)*6:we}if(Y===0)pe=Me=ce=k;else{var Fe=k<.5?k*(1+Y):k+Y-k*Y,U=2*k-Fe;pe=Ce(U,Fe,S+1/3),Me=Ce(U,Fe,S),ce=Ce(U,Fe,S-1/3)}return{r:pe*255,g:Me*255,b:ce*255}}function h(S,Y,k){S=A(S,255),Y=A(Y,255),k=A(k,255);var pe=se(S,Y,k),Me=ue(S,Y,k),ce,Ce,Fe=pe,U=pe-Me;if(Ce=pe===0?0:U/pe,pe==Me)ce=0;else{switch(pe){case S:ce=(Y-k)/U+(Y<k?6:0);break;case Y:ce=(k-S)/U+2;break;case k:ce=(S-Y)/U+4;break}ce/=6}return{h:ce,s:Ce,v:Fe}}function p(S,Y,k){S=A(S,360)*6,Y=A(Y,100),k=A(k,100);var pe=ie.floor(S),Me=S-pe,ce=k*(1-Y),Ce=k*(1-Me*Y),Fe=k*(1-(1-Me)*Y),U=pe%6,we=[k,Ce,ce,ce,Fe,k][U],Ne=[Fe,k,k,Ce,ce,ce][U],ke=[ce,ce,Fe,k,k,Ce][U];return{r:we*255,g:Ne*255,b:ke*255}}function T(S,Y,k,pe){var Me=[_e(R(S).toString(16)),_e(R(Y).toString(16)),_e(R(k).toString(16))];return pe&&Me[0].charAt(0)==Me[0].charAt(1)&&Me[1].charAt(0)==Me[1].charAt(1)&&Me[2].charAt(0)==Me[2].charAt(1)?Me[0].charAt(0)+Me[1].charAt(0)+Me[2].charAt(0):Me.join("")}function W(S,Y,k,pe,Me){var ce=[_e(R(S).toString(16)),_e(R(Y).toString(16)),_e(R(k).toString(16)),_e(be(pe))];return Me&&ce[0].charAt(0)==ce[0].charAt(1)&&ce[1].charAt(0)==ce[1].charAt(1)&&ce[2].charAt(0)==ce[2].charAt(1)&&ce[3].charAt(0)==ce[3].charAt(1)?ce[0].charAt(0)+ce[1].charAt(0)+ce[2].charAt(0)+ce[3].charAt(0):ce.join("")}function _(S,Y,k,pe){var Me=[_e(be(pe)),_e(R(S).toString(16)),_e(R(Y).toString(16)),_e(R(k).toString(16))];return Me.join("")}N.equals=function(S,Y){return!S||!Y?!1:N(S).toRgbString()==N(Y).toRgbString()},N.random=function(){return N.fromRatio({r:a(),g:a(),b:a()})};function g(S,Y){Y=Y===0?0:Y||10;var k=N(S).toHsl();return k.s-=Y/100,k.s=l(k.s),N(k)}function j(S,Y){Y=Y===0?0:Y||10;var k=N(S).toHsl();return k.s+=Y/100,k.s=l(k.s),N(k)}function Q(S){return N(S).desaturate(100)}function J(S,Y){Y=Y===0?0:Y||10;var k=N(S).toHsl();return k.l+=Y/100,k.l=l(k.l),N(k)}function P(S,Y){Y=Y===0?0:Y||10;var k=N(S).toRgb();return k.r=se(0,ue(255,k.r-R(255*-(Y/100)))),k.g=se(0,ue(255,k.g-R(255*-(Y/100)))),k.b=se(0,ue(255,k.b-R(255*-(Y/100)))),N(k)}function te(S,Y){Y=Y===0?0:Y||10;var k=N(S).toHsl();return k.l-=Y/100,k.l=l(k.l),N(k)}function H(S,Y){var k=N(S).toHsl(),pe=(k.h+Y)%360;return k.h=pe<0?360+pe:pe,N(k)}function le(S){var Y=N(S).toHsl();return Y.h=(Y.h+180)%360,N(Y)}function ye(S){var Y=N(S).toHsl(),k=Y.h;return[N(S),N({h:(k+120)%360,s:Y.s,l:Y.l}),N({h:(k+240)%360,s:Y.s,l:Y.l})]}function ge(S){var Y=N(S).toHsl(),k=Y.h;return[N(S),N({h:(k+90)%360,s:Y.s,l:Y.l}),N({h:(k+180)%360,s:Y.s,l:Y.l}),N({h:(k+270)%360,s:Y.s,l:Y.l})]}function z(S){var Y=N(S).toHsl(),k=Y.h;return[N(S),N({h:(k+72)%360,s:Y.s,l:Y.l}),N({h:(k+216)%360,s:Y.s,l:Y.l})]}function F(S,Y,k){Y=Y||6,k=k||30;var pe=N(S).toHsl(),Me=360/k,ce=[N(S)];for(pe.h=(pe.h-(Me*Y>>1)+720)%360;--Y;)pe.h=(pe.h+Me)%360,ce.push(N(pe));return ce}function K(S,Y){Y=Y||6;for(var k=N(S).toHsv(),pe=k.h,Me=k.s,ce=k.v,Ce=[],Fe=1/Y;Y--;)Ce.push(N({h:pe,s:Me,v:ce})),ce=(ce+Fe)%1;return Ce}N.mix=function(S,Y,k){k=k===0?0:k||50;var pe=N(S).toRgb(),Me=N(Y).toRgb(),ce=k/100,Ce={r:(Me.r-pe.r)*ce+pe.r,g:(Me.g-pe.g)*ce+pe.g,b:(Me.b-pe.b)*ce+pe.b,a:(Me.a-pe.a)*ce+pe.a};return N(Ce)},N.readability=function(S,Y){var k=N(S),pe=N(Y);return(ie.max(k.getLuminance(),pe.getLuminance())+.05)/(ie.min(k.getLuminance(),pe.getLuminance())+.05)},N.isReadable=function(S,Y,k){var pe=N.readability(S,Y),Me,ce;ce=!1,Me=Oe(k);switch(Me.level+Me.size){case"AAsmall":case"AAAlarge":ce=pe>=4.5;break;case"AAlarge":ce=pe>=3;break;case"AAAsmall":ce=pe>=7;break}return ce},N.mostReadable=function(S,Y,k){var pe=null,Me=0,ce,Ce,Fe,U;k=k||{},Ce=k.includeFallbackColors,Fe=k.level,U=k.size;for(var we=0;we<Y.length;we++)ce=N.readability(S,Y[we]),ce>Me&&(Me=ce,pe=N(Y[we]));return N.isReadable(S,pe,{level:Fe,size:U})||!Ce?pe:(k.includeFallbackColors=!1,N.mostReadable(S,["#fff","#000"],k))};var xe=N.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=N.hexNames=u(xe);function u(S){var Y={};for(var k in S)S.hasOwnProperty(k)&&(Y[S[k]]=k);return Y}function v(S){return S=parseFloat(S),(isNaN(S)||S<0||S>1)&&(S=1),S}function A(S,Y){D(S)&&(S="100%");var k=he(S);return S=ue(Y,se(0,parseFloat(S))),k&&(S=parseInt(S*Y,10)/100),ie.abs(S-Y)<1e-6?1:S%Y/parseFloat(Y)}function l(S){return ue(1,se(0,S))}function C(S){return parseInt(S,16)}function D(S){return typeof S=="string"&&S.indexOf(".")!=-1&&parseFloat(S)===1}function he(S){return typeof S=="string"&&S.indexOf("%")!=-1}function _e(S){return S.length==1?"0"+S:""+S}function Ae(S){return S<=1&&(S=S*100+"%"),S}function be(S){return ie.round(parseFloat(S)*255).toString(16)}function G(S){return C(S)/255}var $=function(){var S="[-\\+]?\\d+%?",Y="[-\\+]?\\d*\\.\\d+%?",k="(?:"+Y+")|(?:"+S+")",pe="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?",Me="[\\s|\\(]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")[,|\\s]+("+k+")\\s*\\)?";return{CSS_UNIT:new RegExp(k),rgb:new RegExp("rgb"+pe),rgba:new RegExp("rgba"+Me),hsl:new RegExp("hsl"+pe),hsla:new RegExp("hsla"+Me),hsv:new RegExp("hsv"+pe),hsva:new RegExp("hsva"+Me),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function me(S){return!!$.CSS_UNIT.exec(S)}function q(S){S=S.replace(Ie,"").replace(ae,"").toLowerCase();var Y=!1;if(xe[S])S=xe[S],Y=!0;else if(S=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var k;return(k=$.rgb.exec(S))?{r:k[1],g:k[2],b:k[3]}:(k=$.rgba.exec(S))?{r:k[1],g:k[2],b:k[3],a:k[4]}:(k=$.hsl.exec(S))?{h:k[1],s:k[2],l:k[3]}:(k=$.hsla.exec(S))?{h:k[1],s:k[2],l:k[3],a:k[4]}:(k=$.hsv.exec(S))?{h:k[1],s:k[2],v:k[3]}:(k=$.hsva.exec(S))?{h:k[1],s:k[2],v:k[3],a:k[4]}:(k=$.hex8.exec(S))?{r:C(k[1]),g:C(k[2]),b:C(k[3]),a:G(k[4]),format:Y?"name":"hex8"}:(k=$.hex6.exec(S))?{r:C(k[1]),g:C(k[2]),b:C(k[3]),format:Y?"name":"hex"}:(k=$.hex4.exec(S))?{r:C(k[1]+""+k[1]),g:C(k[2]+""+k[2]),b:C(k[3]+""+k[3]),a:G(k[4]+""+k[4]),format:Y?"name":"hex8"}:(k=$.hex3.exec(S))?{r:C(k[1]+""+k[1]),g:C(k[2]+""+k[2]),b:C(k[3]+""+k[3]),format:Y?"name":"hex"}:!1}function Oe(S){var Y,k;return S=S||{level:"AA",size:"small"},Y=(S.level||"AA").toUpperCase(),k=(S.size||"small").toLowerCase(),Y!=="AA"&&Y!=="AAA"&&(Y="AA"),k!=="small"&&k!=="large"&&(k="small"),{level:Y,size:k}}De.exports?De.exports=N:!(re=function(){return N}.call(L,s,L,De),re!==void 0&&(De.exports=re))})(Math)},aVK0:function(De,L,s){De.exports={flex_box_center:"flex_box_center___21Vfj",flex_space_between:"flex_space_between___uZYuI",flex_box_vertical_center:"flex_box_vertical_center___YbtWj",flex_box_center_end:"flex_box_center_end_____Dod",flex_box_column:"flex_box_column___38gQH",headLeft:"headLeft___2agg1",colorBlue:"colorBlue___3Vx0N",wrap:"wrap___2WfDC",nodata:"nodata___2f07p",nodataText:"nodataText___3TEWn",content:"content___2_atz",gitCode:"gitCode___3gBXU",ellipsis:"ellipsis___1HiNM",menu:"menu___1DQOO",overlayClass:"overlayClass___2EPCd",tips:"tips___3g6oq"}},bT9E:function(De,L,s){"use strict";s.d(L,"a",function(){return ie});var re=s("VTBJ");function ie(Ie,ae){var y=Object(re.a)({},Ie);return Array.isArray(ae)&&ae.forEach(function(R){delete y[R]}),y}},c5Ni:function(De,L,s){},cRFk:function(De,L,s){De.exports=s.p+"static/RepositoryNoneData.828085a8.png"},csWT:function(De,L,s){De.exports=s.p+"static/choose.4ad1045f.svg"},djh8:function(De,L,s){De.exports=s.p+"static/qrCode.d852fdfc.png"},fAei:function(De,L,s){"use strict";s.d(L,"a",function(){return g.a});var re=s("rePB"),ie=s("VTBJ"),Ie=s("KQm4"),ae=s("1OyB"),y=s("vuIU"),R=s("Ji7U"),ue=s("LK+K"),se=s("q1tI"),a=s("4IlW"),N=s("Kwbf"),I=s("TSYQ"),E=s.n(I),f=s("sboe"),d=s("OZM5"),h=s("815F"),p=s("ODXe"),T=s("Ff2n"),W=s("+nKL"),_=s("8XRh"),g=s("WaYH"),j=function(Ae,be){var G=Ae.className,$=Ae.style,me=Ae.motion,q=Ae.motionNodes,Oe=Ae.motionType,S=Ae.onMotionStart,Y=Ae.onMotionEnd,k=Ae.active,pe=Ae.treeNodeRequiredProps,Me=Object(T.a)(Ae,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),ce=se.useState(!0),Ce=Object(p.a)(ce,2),Fe=Ce[0],U=Ce[1],we=se.useContext(f.a),Ne=we.prefixCls,ke=se.useRef(!1),$e=function(){ke.current||Y(),ke.current=!0};return Object(se.useEffect)(function(){q&&Oe==="hide"&&Fe&&U(!1)},[q]),Object(se.useEffect)(function(){return q&&S(),function(){q&&$e()}},[]),q?se.createElement(_.default,Object.assign({ref:be,visible:Fe},me,{motionAppear:Oe==="show",onAppearEnd:$e,onLeaveEnd:$e}),function(Xe,st){var Ze=Xe.className,yt=Xe.style;return se.createElement("div",{ref:st,className:E()("".concat(Ne,"-treenode-motion"),Ze),style:yt},q.map(function(At){var Lt=At.data,qe=Lt.key,Xn=Object(T.a)(Lt,["key"]),xn=At.isStart,Bt=At.isEnd;delete Xn.children;var ut=Object(h.f)(qe,pe);return se.createElement(g.a,Object.assign({},Xn,ut,{active:k,data:At.data,key:qe,isStart:xn,isEnd:Bt}))}))}):se.createElement(g.a,Object.assign({domRef:be,className:G,style:$},Me,{active:k}))};j.displayName="MotionTreeNode";var Q=se.forwardRef(j),J=Q;function P(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],be=_e.length,G=Ae.length;if(Math.abs(be-G)!==1)return{add:!1,key:null};function $(me,q){var Oe=new Map;me.forEach(function(Y){Oe.set(Y,!0)});var S=q.filter(function(Y){return!Oe.has(Y)});return S.length===1?S[0]:null}return be<G?{add:!0,key:$(_e,Ae)}:{add:!1,key:$(Ae,_e)}}function te(_e,Ae,be){var G=_e.findIndex(function(Oe){var S=Oe.data;return S.key===be}),$=_e[G+1],me=Ae.findIndex(function(Oe){var S=Oe.data;return S.key===be});if($){var q=Ae.findIndex(function(Oe){var S=Oe.data;return S.key===$.data.key});return Ae.slice(me+1,q)}return Ae.slice(me+1)}var H={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},le=function(){},ye="RC_TREE_MOTION_".concat(Math.random()),ge={key:ye},z={key:ye,level:0,index:0,pos:"0",node:ge},F={parent:null,children:[],pos:z.pos,data:ge,isStart:[],isEnd:[]};function K(_e,Ae,be,G){return Ae===!1||!be?_e:_e.slice(0,Math.ceil(be/G)+1)}function xe(_e){var Ae=_e.data.key,be=_e.pos;return Object(h.e)(Ae,be)}function M(_e){for(var Ae=String(_e.data.key),be=_e;be.parent;)be=be.parent,Ae="".concat(be.data.key," > ").concat(Ae);return Ae}var u=function(Ae,be){var G=Ae.prefixCls,$=Ae.data,me=Ae.selectable,q=Ae.checkable,Oe=Ae.expandedKeys,S=Ae.selectedKeys,Y=Ae.checkedKeys,k=Ae.loadedKeys,pe=Ae.loadingKeys,Me=Ae.halfCheckedKeys,ce=Ae.keyEntities,Ce=Ae.disabled,Fe=Ae.dragging,U=Ae.dragOverNodeKey,we=Ae.dropPosition,Ne=Ae.motion,ke=Ae.height,$e=Ae.itemHeight,Xe=Ae.virtual,st=Ae.focusable,Ze=Ae.activeItem,yt=Ae.focused,At=Ae.tabIndex,Lt=Ae.onKeyDown,qe=Ae.onFocus,Xn=Ae.onBlur,xn=Ae.onActiveChange,Bt=Ae.onListChangeStart,ut=Ae.onListChangeEnd,Wt=Object(T.a)(Ae,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),It=se.useRef(null);se.useImperativeHandle(be,function(){return{scrollTo:function(Ve){It.current.scrollTo(Ve)}}});var pn=se.useState(Oe),en=Object(p.a)(pn,2),Rn=en[0],oi=en[1],On=se.useState($),si=Object(p.a)(On,2),Ti=si[0],li=si[1],ir=se.useState($),rr=Object(p.a)(ir,2),Yi=rr[0],Pi=rr[1],Si=se.useState([]),hi=Object(p.a)(Si,2),mr=hi[0],ht=hi[1],We=se.useState(null),pt=Object(p.a)(We,2),Dt=pt[0],Ht=pt[1];function Ut(){li($),Pi($),ht([]),Ht(null),ut()}se.useEffect(function(){oi(Oe);var rt=P(Rn,Oe);if(rt.key!==null)if(rt.add){var Ve=Ti.findIndex(function(Zt){var Ot=Zt.data.key;return Ot===rt.key}),at=K(te(Ti,$,rt.key),Xe,ke,$e),Ye=Ti.slice();Ye.splice(Ve+1,0,F),Pi(Ye),ht(at),Ht("show")}else{var Ct=$.findIndex(function(Zt){var Ot=Zt.data.key;return Ot===rt.key}),Ge=K(te($,Ti,rt.key),Xe,ke,$e),ze=$.slice();ze.splice(Ct+1,0,F),Pi(ze),ht(Ge),Ht("hide")}else Ti!==$&&(li($),Pi($))},[Oe,$]),se.useEffect(function(){Fe||Ut()},[Fe]);var In=Ne?Yi:$,ln={expandedKeys:Oe,selectedKeys:S,loadedKeys:k,loadingKeys:pe,checkedKeys:Y,halfCheckedKeys:Me,dragOverNodeKey:U,dropPosition:we,keyEntities:ce};return se.createElement(se.Fragment,null,yt&&Ze&&se.createElement("span",{style:H,"aria-live":"assertive"},M(Ze)),se.createElement("div",{role:"tree"},se.createElement("input",{style:H,disabled:st===!1||Ce,tabIndex:st!==!1?At:null,onKeyDown:Lt,onFocus:qe,onBlur:Xn,value:"",onChange:le})),se.createElement(W.a,Object.assign({},Wt,{data:In,itemKey:xe,height:ke,fullHeight:!1,virtual:Xe,itemHeight:$e,prefixCls:"".concat(G,"-list"),ref:It}),function(rt){var Ve=rt.pos,at=rt.data,Ye=at.key,Ct=Object(T.a)(at,["key"]),Ge=rt.isStart,ze=rt.isEnd,Zt=Object(h.e)(Ye,Ve);delete Ct.children;var Ot=Object(h.f)(Zt,ln);return se.createElement(J,Object.assign({},Ct,Ot,{active:Ze&&Ye===Ze.data.key,pos:Ve,data:rt.data,isStart:Ge,isEnd:ze,motion:Ne,motionNodes:Ye===ye?mr:null,motionType:Dt,onMotionStart:Bt,onMotionEnd:Ut,treeNodeRequiredProps:ln,onMouseMove:function(){xn(null)}}))}))},v=se.forwardRef(u);v.displayName="NodeList";var A=v,l=s("NvD2"),C=function(_e){Object(R.a)(be,_e);var Ae=Object(ue.a)(be);function be(){var G;return Object(ae.a)(this,be),G=Ae.apply(this,arguments),G.destroyed=!1,G.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},G.listRef=se.createRef(),G.onNodeDragStart=function($,me){var q=G.state,Oe=q.expandedKeys,S=q.keyEntities,Y=G.props.onDragStart,k=me.props.eventKey;G.dragNode=me;var pe=Object(d.b)(Oe,k);G.setState({dragging:!0,dragNodesKeys:Object(d.g)(k,S)}),G.setExpandedKeys(pe),Y&&Y({event:$,node:Object(h.b)(me.props)})},G.onNodeDragEnter=function($,me){var q=G.state,Oe=q.expandedKeys,S=q.keyEntities,Y=q.dragNodesKeys,k=G.props.onDragEnter,pe=me.props,Me=pe.pos,ce=pe.eventKey;if(!G.dragNode||Y.indexOf(ce)!==-1)return;var Ce=Object(d.c)($,me);if(G.dragNode.props.eventKey===ce&&Ce===0){G.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){G.setState({dragOverNodeKey:ce,dropPosition:Ce}),G.delayedDragEnterLogic||(G.delayedDragEnterLogic={}),Object.keys(G.delayedDragEnterLogic).forEach(function(Fe){clearTimeout(G.delayedDragEnterLogic[Fe])}),G.delayedDragEnterLogic[Me]=window.setTimeout(function(){if(!G.state.dragging)return;var Fe=Object(Ie.a)(Oe),U=S[ce];U&&(U.children||[]).length&&(Fe=Object(d.a)(Oe,ce)),"expandedKeys"in G.props||G.setExpandedKeys(Fe),k&&k({event:$,node:Object(h.b)(me.props),expandedKeys:Fe})},400)},0)},G.onNodeDragOver=function($,me){var q=G.state.dragNodesKeys,Oe=G.props.onDragOver,S=me.props.eventKey;if(q.indexOf(S)!==-1)return;if(G.dragNode&&S===G.state.dragOverNodeKey){var Y=Object(d.c)($,me);if(Y===G.state.dropPosition)return;G.setState({dropPosition:Y})}Oe&&Oe({event:$,node:Object(h.b)(me.props)})},G.onNodeDragLeave=function($,me){var q=G.props.onDragLeave;G.setState({dragOverNodeKey:""}),q&&q({event:$,node:Object(h.b)(me.props)})},G.onNodeDragEnd=function($,me){var q=G.props.onDragEnd;G.setState({dragOverNodeKey:""}),G.cleanDragState(),q&&q({event:$,node:Object(h.b)(me.props)}),G.dragNode=null},G.onNodeDrop=function($,me){var q=G.state,Oe=q.dragNodesKeys,S=Oe===void 0?[]:Oe,Y=q.dropPosition,k=G.props.onDrop,pe=me.props,Me=pe.eventKey,ce=pe.pos;if(G.setState({dragOverNodeKey:""}),G.cleanDragState(),S.indexOf(Me)!==-1){Object(N.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Ce=Object(d.k)(ce),Fe={event:$,node:Object(h.b)(me.props),dragNode:G.dragNode?Object(h.b)(G.dragNode.props):null,dragNodesKeys:S.slice(),dropPosition:Y+Number(Ce[Ce.length-1]),dropToGap:!1};Y!==0&&(Fe.dropToGap=!0),k&&k(Fe),G.dragNode=null},G.cleanDragState=function(){var $=G.state.dragging;$&&G.setState({dragging:!1})},G.onNodeClick=function($,me){var q=G.props.onClick;q&&q($,me)},G.onNodeDoubleClick=function($,me){var q=G.props.onDoubleClick;q&&q($,me)},G.onNodeSelect=function($,me){var q=G.state.selectedKeys,Oe=G.state.keyEntities,S=G.props,Y=S.onSelect,k=S.multiple,pe=me.selected,Me=me.key,ce=!pe;ce?k?q=Object(d.a)(q,Me):q=[Me]:q=Object(d.b)(q,Me);var Ce=q.map(function(Fe){var U=Oe[Fe];return U?U.node:null}).filter(function(Fe){return Fe});G.setUncontrolledState({selectedKeys:q}),Y&&Y(q,{event:"select",selected:ce,node:me,selectedNodes:Ce,nativeEvent:$.nativeEvent})},G.onNodeCheck=function($,me,q){var Oe=G.state,S=Oe.keyEntities,Y=Oe.checkedKeys,k=Oe.halfCheckedKeys,pe=G.props,Me=pe.checkStrictly,ce=pe.onCheck,Ce=me.key,Fe,U={event:"check",node:me,checked:q,nativeEvent:$.nativeEvent};if(Me){var we=q?Object(d.a)(Y,Ce):Object(d.b)(Y,Ce),Ne=Object(d.b)(k,Ce);Fe={checked:we,halfChecked:Ne},U.checkedNodes=we.map(function(yt){return S[yt]}).filter(function(yt){return yt}).map(function(yt){return yt.node}),G.setUncontrolledState({checkedKeys:we})}else{var ke=Object(l.a)([].concat(Object(Ie.a)(Y),[Ce]),!0,S),$e=ke.checkedKeys,Xe=ke.halfCheckedKeys;if(!q){var st=new Set($e);st.delete(Ce);var Ze=Object(l.a)(Array.from(st),{checked:!1,halfCheckedKeys:Xe},S);$e=Ze.checkedKeys,Xe=Ze.halfCheckedKeys}Fe=$e,U.checkedNodes=[],U.checkedNodesPositions=[],U.halfCheckedKeys=Xe,$e.forEach(function(yt){var At=S[yt];if(!At)return;var Lt=At.node,qe=At.pos;U.checkedNodes.push(Lt),U.checkedNodesPositions.push({node:Lt,pos:qe})}),G.setUncontrolledState({checkedKeys:$e},!1,{halfCheckedKeys:Xe})}ce&&ce(Fe,U)},G.onNodeLoad=function($){return new Promise(function(me){G.setState(function(q){var Oe=q.loadedKeys,S=Oe===void 0?[]:Oe,Y=q.loadingKeys,k=Y===void 0?[]:Y,pe=G.props,Me=pe.loadData,ce=pe.onLoad,Ce=$.key;if(!Me||S.indexOf(Ce)!==-1||k.indexOf(Ce)!==-1)return{};var Fe=Me($);return Fe.then(function(){var U=G.state,we=U.loadedKeys,Ne=U.loadingKeys,ke=Object(d.a)(we,Ce),$e=Object(d.b)(Ne,Ce);ce&&ce(ke,{event:"load",node:$}),G.setUncontrolledState({loadedKeys:ke}),G.setState({loadingKeys:$e}),me()}),{loadingKeys:Object(d.a)(k,Ce)}})})},G.onNodeMouseEnter=function($,me){var q=G.props.onMouseEnter;q&&q({event:$,node:me})},G.onNodeMouseLeave=function($,me){var q=G.props.onMouseLeave;q&&q({event:$,node:me})},G.onNodeContextMenu=function($,me){var q=G.props.onRightClick;q&&($.preventDefault(),q({event:$,node:me}))},G.onFocus=function(){var $=G.props.onFocus;G.setState({focused:!0}),$&&$.apply(void 0,arguments)},G.onBlur=function(){var $=G.props.onBlur;G.setState({focused:!1}),G.onActiveChange(null),$&&$.apply(void 0,arguments)},G.getTreeNodeRequiredProps=function(){var $=G.state,me=$.expandedKeys,q=$.selectedKeys,Oe=$.loadedKeys,S=$.loadingKeys,Y=$.checkedKeys,k=$.halfCheckedKeys,pe=$.dragOverNodeKey,Me=$.dropPosition,ce=$.keyEntities;return{expandedKeys:me||[],selectedKeys:q||[],loadedKeys:Oe||[],loadingKeys:S||[],checkedKeys:Y||[],halfCheckedKeys:k||[],dragOverNodeKey:pe,dropPosition:Me,keyEntities:ce}},G.setExpandedKeys=function($){var me=G.state.treeData,q=Object(h.d)(me,$);G.setUncontrolledState({expandedKeys:$,flattenNodes:q},!0)},G.onNodeExpand=function($,me){var q=G.state.expandedKeys,Oe=G.state.listChanging,S=G.props,Y=S.onExpand,k=S.loadData,pe=me.key,Me=me.expanded;if(Oe)return;var ce=q.indexOf(pe),Ce=!Me;if(Object(N.a)(Me&&ce!==-1||!Me&&ce===-1,"Expand state not sync with index check"),Ce?q=Object(d.a)(q,pe):q=Object(d.b)(q,pe),G.setExpandedKeys(q),Y&&Y(q,{node:me,expanded:Ce,nativeEvent:$.nativeEvent}),Ce&&k){var Fe=G.onNodeLoad(me);Fe&&Fe.then(function(){var U=Object(h.d)(G.state.treeData,q);G.setUncontrolledState({flattenNodes:U})})}},G.onListChangeStart=function(){G.setUncontrolledState({listChanging:!0})},G.onListChangeEnd=function(){setTimeout(function(){G.setUncontrolledState({listChanging:!1})})},G.onActiveChange=function($){var me=G.state.activeKey,q=G.props.onActiveChange;if(me===$)return;G.setState({activeKey:$}),$!==null&&G.scrollTo({key:$}),q&&q($)},G.getActiveItem=function(){var $=G.state,me=$.activeKey,q=$.flattenNodes;return me===null?null:q.find(function(Oe){var S=Oe.data.key;return S===me})||null},G.offsetActiveKey=function($){var me=G.state,q=me.flattenNodes,Oe=me.activeKey,S=q.findIndex(function(pe){var Me=pe.data.key;return Me===Oe});S===-1&&$<0&&(S=q.length),S=(S+$+q.length)%q.length;var Y=q[S];if(Y){var k=Y.data.key;G.onActiveChange(k)}else G.onActiveChange(null)},G.onKeyDown=function($){var me=G.state,q=me.activeKey,Oe=me.expandedKeys,S=me.checkedKeys,Y=G.props,k=Y.onKeyDown,pe=Y.checkable,Me=Y.selectable;switch($.which){case a.a.UP:{G.offsetActiveKey(-1),$.preventDefault();break}case a.a.DOWN:{G.offsetActiveKey(1),$.preventDefault();break}}var ce=G.getActiveItem();if(ce&&ce.data){var Ce=G.getTreeNodeRequiredProps(),Fe=ce.data.isLeaf===!1||!!(ce.data.children||[]).length,U=Object(h.b)(Object(ie.a)(Object(ie.a)({},Object(h.f)(q,Ce)),{},{data:ce.data,active:!0}));switch($.which){case a.a.LEFT:{Fe&&Oe.includes(q)?G.onNodeExpand({},U):ce.parent&&G.onActiveChange(ce.parent.data.key),$.preventDefault();break}case a.a.RIGHT:{Fe&&!Oe.includes(q)?G.onNodeExpand({},U):ce.children&&ce.children.length&&G.onActiveChange(ce.children[0].data.key),$.preventDefault();break}case a.a.ENTER:case a.a.SPACE:{pe&&!U.disabled&&U.checkable!==!1&&!U.disableCheckbox?G.onNodeCheck({},U,!S.includes(q)):!pe&&Me&&!U.disabled&&U.selectable!==!1&&G.onNodeSelect({},U);break}}}k&&k($)},G.setUncontrolledState=function($){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(G.destroyed)return;var Oe=!1,S=!0,Y={};Object.keys($).forEach(function(k){if(k in G.props){S=!1;return}Oe=!0,Y[k]=$[k]}),Oe&&(!me||S)&&G.setState(Object(ie.a)(Object(ie.a)({},Y),q))},G.scrollTo=function($){G.listRef.current.scrollTo($)},G}return Object(y.a)(be,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var $,me=this.state,q=me.focused,Oe=me.flattenNodes,S=me.keyEntities,Y=me.dragging,k=me.activeKey,pe=this.props,Me=pe.prefixCls,ce=pe.className,Ce=pe.style,Fe=pe.showLine,U=pe.focusable,we=pe.tabIndex,Ne=we===void 0?0:we,ke=pe.selectable,$e=pe.showIcon,Xe=pe.icon,st=pe.switcherIcon,Ze=pe.draggable,yt=pe.checkable,At=pe.checkStrictly,Lt=pe.disabled,qe=pe.motion,Xn=pe.loadData,xn=pe.filterTreeNode,Bt=pe.height,ut=pe.itemHeight,Wt=pe.virtual,It=pe.titleRender,pn=pe.onContextMenu,en=Object(d.f)(this.props);return se.createElement(f.a.Provider,{value:{prefixCls:Me,selectable:ke,showIcon:$e,icon:Xe,switcherIcon:st,draggable:Ze,checkable:yt,checkStrictly:At,disabled:Lt,keyEntities:S,loadData:Xn,filterTreeNode:xn,titleRender:It,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},se.createElement("div",{className:E()(Me,ce,($={},Object(re.a)($,"".concat(Me,"-show-line"),Fe),Object(re.a)($,"".concat(Me,"-focused"),q),Object(re.a)($,"".concat(Me,"-active-focused"),k!==null),$))},se.createElement(A,Object.assign({ref:this.listRef,prefixCls:Me,style:Ce,data:Oe,disabled:Lt,selectable:ke,checkable:!!yt,motion:qe,dragging:Y,height:Bt,itemHeight:ut,virtual:Wt,focusable:U,focused:q,tabIndex:Ne,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:pn},this.getTreeNodeRequiredProps(),en))))}}],[{key:"getDerivedStateFromProps",value:function($,me){var q=me.prevProps,Oe={prevProps:$};function S(Xe){return!q&&Xe in $||q&&q[Xe]!==$[Xe]}var Y;if(S("treeData")?Y=$.treeData:S("children")&&(Object(N.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Y=Object(h.c)($.children)),Y){Oe.treeData=Y;var k=Object(h.a)(Y);Oe.keyEntities=Object(ie.a)(Object(re.a)({},ye,z),k.keyEntities)}var pe=Oe.keyEntities||me.keyEntities;if(S("expandedKeys")||q&&S("autoExpandParent"))Oe.expandedKeys=$.autoExpandParent||!q&&$.defaultExpandParent?Object(d.e)($.expandedKeys,pe):$.expandedKeys;else if(!q&&$.defaultExpandAll){var Me=Object(ie.a)({},pe);delete Me[ye],Oe.expandedKeys=Object.keys(Me).map(function(Xe){return Me[Xe].key})}else!q&&$.defaultExpandedKeys&&(Oe.expandedKeys=$.autoExpandParent||$.defaultExpandParent?Object(d.e)($.defaultExpandedKeys,pe):$.defaultExpandedKeys);if(Oe.expandedKeys||delete Oe.expandedKeys,Y||Oe.expandedKeys){var ce=Object(h.d)(Y||me.treeData,Oe.expandedKeys||me.expandedKeys);Oe.flattenNodes=ce}if($.selectable&&(S("selectedKeys")?Oe.selectedKeys=Object(d.d)($.selectedKeys,$):!q&&$.defaultSelectedKeys&&(Oe.selectedKeys=Object(d.d)($.defaultSelectedKeys,$))),$.checkable){var Ce;if(S("checkedKeys")?Ce=Object(d.j)($.checkedKeys)||{}:!q&&$.defaultCheckedKeys?Ce=Object(d.j)($.defaultCheckedKeys)||{}:Y&&(Ce=Object(d.j)($.checkedKeys)||{checkedKeys:me.checkedKeys,halfCheckedKeys:me.halfCheckedKeys}),Ce){var Fe=Ce,U=Fe.checkedKeys,we=U===void 0?[]:U,Ne=Fe.halfCheckedKeys,ke=Ne===void 0?[]:Ne;if(!$.checkStrictly){var $e=Object(l.a)(we,!0,pe);we=$e.checkedKeys,ke=$e.halfCheckedKeys}Oe.checkedKeys=we,Oe.halfCheckedKeys=ke}}return S("loadedKeys")&&(Oe.loadedKeys=$.loadedKeys),Oe}}]),be}(se.Component);C.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},C.TreeNode=g.a;var D=C,he=L.b=D},fjLI:function(De,L,s){"use strict";s.d(L,"f",function(){return f}),s.d(L,"b",function(){return d}),s.d(L,"a",function(){return h}),s.d(L,"d",function(){return p}),s.d(L,"e",function(){return T}),s.d(L,"c",function(){return W});var re=s("8HAY"),ie=s("Vhoy"),Ie=s("MI8n"),ae=s("JYp7"),y=s("pmY6"),R=s("24hK"),ue=s("nnTU"),se=s("T8No"),a=s("Cg/j"),N=s("t9D7"),I=function(_,g,j,Q){var J=arguments.length,P=J<3?g:Q===null?Q=Object.getOwnPropertyDescriptor(g,j):Q,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(_,g,j,Q);else for(var H=_.length-1;H>=0;H--)(te=_[H])&&(P=(J<3?te(P):J>3?te(g,j,P):te(g,j))||P);return J>3&&P&&Object.defineProperty(g,j,P),P},E=function(_,g){return function(j,Q){g(j,Q,_)}};function f(_){return _.command!==void 0}class d{constructor(_){this.id=d._idPool++,this._debugName=_}}d._idPool=0,d.CommandPalette=new d("CommandPalette"),d.EditorContext=new d("EditorContext"),d.SimpleEditorContext=new d("SimpleEditorContext"),d.EditorContextCopy=new d("EditorContextCopy"),d.EditorContextPeek=new d("EditorContextPeek"),d.MenubarEditMenu=new d("MenubarEditMenu"),d.MenubarCopy=new d("MenubarCopy"),d.MenubarGoMenu=new d("MenubarGoMenu"),d.MenubarSelectionMenu=new d("MenubarSelectionMenu"),d.InlineCompletionsActions=new d("InlineCompletionsActions");const h=Object(a.c)("menuService"),p=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Ie.b,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:_=>_===d.CommandPalette}}addCommand(_){return this.addCommands(ae.a.single(_))}addCommands(_){for(const g of _)this._commands.set(g.id,g);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(y.i)(()=>{let g=!1;for(const j of _)g=this._commands.delete(j.id)||g;g&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(_){return this._commands.get(_)}getCommands(){const _=new Map;return this._commands.forEach((g,j)=>_.set(j,g)),_}appendMenuItem(_,g){return this.appendMenuItems(ae.a.single({id:_,item:g}))}appendMenuItems(_){const g=new Set,j=new R.a;for(const{id:Q,item:J}of _){let P=this._menuItems.get(Q);P||(P=new R.a,this._menuItems.set(Q,P)),j.push(P.push(J)),g.add(Q)}return this._onDidChangeMenu.fire(g),Object(y.i)(()=>{if(j.size>0){for(let Q of j)Q();this._onDidChangeMenu.fire(g),j.clear()}})}getMenuItems(_){let g;return this._menuItems.has(_)?g=[...this._menuItems.get(_)]:g=[],_===d.CommandPalette&&this._appendImplicitItems(g),g}_appendImplicitItems(_){const g=new Set;for(const j of _)f(j)&&(g.add(j.command.id),j.alt&&g.add(j.alt.id));this._commands.forEach((j,Q)=>{g.has(Q)||_.push({command:j})})}};class T extends re.e{constructor(_,g,j,Q){super(`submenuitem.${_.submenu.id}`,typeof _.title=="string"?_.title:_.title.value,[],"submenu");this.item=_,this._menuService=g,this._contextKeyService=j,this._options=Q}get actions(){const _=[],g=this._menuService.createMenu(this.item.submenu,this._contextKeyService),j=g.getActions(this._options);g.dispose();for(const[,Q]of j)Q.length>0&&(_.push(...Q),_.push(new re.d));return _.length&&_.pop(),_}}let W=class _{constructor(g,j,Q,J,P){var te,H;if(this._commandService=P,this.id=g.id,this.label=(Q==null?void 0:Q.renderShortTitle)&&g.shortTitle?typeof g.shortTitle=="string"?g.shortTitle:g.shortTitle.value:typeof g.title=="string"?g.title:g.title.value,this.tooltip=(H=typeof g.tooltip=="string"?g.tooltip:(te=g.tooltip)===null||te===void 0?void 0:te.value)!==null&&H!==void 0?H:"",this.enabled=!g.precondition||J.contextMatchesRules(g.precondition),this.checked=void 0,g.toggled){const le=g.toggled.condition?g.toggled:{condition:g.toggled};this.checked=J.contextMatchesRules(le.condition),this.checked&&le.tooltip&&(this.tooltip=typeof le.tooltip=="string"?le.tooltip:le.tooltip.value),le.title&&(this.label=typeof le.title=="string"?le.title:le.title.value)}this.item=g,this.alt=j?new _(j,void 0,Q,J,P):void 0,this._options=Q,N.d.isThemeIcon(g.icon)&&(this.class=ie.a.asClassName(g.icon))}dispose(){}run(...g){var j,Q;let J=[];return((j=this._options)===null||j===void 0?void 0:j.arg)&&(J=[...J,this._options.arg]),((Q=this._options)===null||Q===void 0?void 0:Q.shouldForwardArgs)&&(J=[...J,...g]),this._commandService.executeCommand(this.id,...J)}};W=I([E(3,se.b),E(4,ue.b)],W)},h78n:function(De,L,s){"use strict";s.d(L,"a",function(){return K});var re=s("q1tI"),ie=s.n(re),Ie=s("TSYQ"),ae=s.n(Ie),y={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},R=function(u){var v=u.map(function(){return Object(re.useRef)()}),A=Object(re.useRef)();return Object(re.useEffect)(function(){var l=Date.now(),C=!1;Object.keys(v).forEach(function(D){var he=v[D].current;if(!he)return;C=!0;var _e=he.style;_e.transitionDuration=".3s, .3s, .3s, .06s",A.current&&l-A.current<100&&(_e.transitionDuration="0s, 0s")}),C&&(A.current=Date.now())}),[v]};function ue(){return ue=Object.assign||function(M){for(var u=1;u<arguments.length;u++){var v=arguments[u];for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(M[A]=v[A])}return M},ue.apply(this,arguments)}function se(M,u){return f(M)||E(M,u)||N(M,u)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N(M,u){if(!M)return;if(typeof M=="string")return I(M,u);var v=Object.prototype.toString.call(M).slice(8,-1);if(v==="Object"&&M.constructor&&(v=M.constructor.name),v==="Map"||v==="Set")return Array.from(M);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return I(M,u)}function I(M,u){(u==null||u>M.length)&&(u=M.length);for(var v=0,A=new Array(u);v<u;v++)A[v]=M[v];return A}function E(M,u){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(M)))return;var v=[],A=!0,l=!1,C=void 0;try{for(var D=M[Symbol.iterator](),he;!(A=(he=D.next()).done)&&!(v.push(he.value),u&&v.length===u);A=!0);}catch(_e){l=!0,C=_e}finally{try{!A&&D.return!=null&&D.return()}finally{if(l)throw C}}return v}function f(M){if(Array.isArray(M))return M}function d(M,u){if(M==null)return{};var v=h(M,u),A,l;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(M);for(l=0;l<C.length;l++){if(A=C[l],u.indexOf(A)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(M,A))continue;v[A]=M[A]}}return v}function h(M,u){if(M==null)return{};var v={},A=Object.keys(M),l,C;for(C=0;C<A.length;C++){if(l=A[C],u.indexOf(l)>=0)continue;v[l]=M[l]}return v}var p=function(u){var v=u.className,A=u.percent,l=u.prefixCls,C=u.strokeColor,D=u.strokeLinecap,he=u.strokeWidth,_e=u.style,Ae=u.trailColor,be=u.trailWidth,G=u.transition,$=d(u,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete $.gapPosition;var me=Array.isArray(A)?A:[A],q=Array.isArray(C)?C:[C],Oe=R(me),S=se(Oe,1),Y=S[0],k=he/2,pe=100-he/2,Me="M ".concat(D==="round"?k:0,",").concat(k,`
|
|
L `).concat(D==="round"?pe:100,",").concat(k),ce="0 0 100 ".concat(he),Ce=0;return ie.a.createElement("svg",ue({className:ae()("".concat(l,"-line"),v),viewBox:ce,preserveAspectRatio:"none",style:_e},$),ie.a.createElement("path",{className:"".concat(l,"-line-trail"),d:Me,strokeLinecap:D,stroke:Ae,strokeWidth:be||he,fillOpacity:"0"}),me.map(function(Fe,U){var we={strokeDasharray:"".concat(Fe,"px, 100px"),strokeDashoffset:"-".concat(Ce,"px"),transition:G||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ne=q[U]||q[q.length-1];return Ce+=Fe,ie.a.createElement("path",{key:U,className:"".concat(l,"-line-path"),d:Me,strokeLinecap:D,stroke:Ne,strokeWidth:he,fillOpacity:"0",ref:Y[U],style:we})}))};p.defaultProps=y;var T=p;function W(){return W=Object.assign||function(M){for(var u=1;u<arguments.length;u++){var v=arguments[u];for(var A in v)Object.prototype.hasOwnProperty.call(v,A)&&(M[A]=v[A])}return M},W.apply(this,arguments)}function _(M,u){return P(M)||J(M,u)||j(M,u)||g()}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(M,u){if(!M)return;if(typeof M=="string")return Q(M,u);var v=Object.prototype.toString.call(M).slice(8,-1);if(v==="Object"&&M.constructor&&(v=M.constructor.name),v==="Map"||v==="Set")return Array.from(M);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return Q(M,u)}function Q(M,u){(u==null||u>M.length)&&(u=M.length);for(var v=0,A=new Array(u);v<u;v++)A[v]=M[v];return A}function J(M,u){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(M)))return;var v=[],A=!0,l=!1,C=void 0;try{for(var D=M[Symbol.iterator](),he;!(A=(he=D.next()).done)&&!(v.push(he.value),u&&v.length===u);A=!0);}catch(_e){l=!0,C=_e}finally{try{!A&&D.return!=null&&D.return()}finally{if(l)throw C}}return v}function P(M){if(Array.isArray(M))return M}function te(M,u){if(M==null)return{};var v=H(M,u),A,l;if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(M);for(l=0;l<C.length;l++){if(A=C[l],u.indexOf(A)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(M,A))continue;v[A]=M[A]}}return v}function H(M,u){if(M==null)return{};var v={},A=Object.keys(M),l,C;for(C=0;C<A.length;C++){if(l=A[C],u.indexOf(l)>=0)continue;v[l]=M[l]}return v}var le=0;function ye(M){return+M.replace("%","")}function ge(M){return Array.isArray(M)?M:[M]}function z(M,u,v,A){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,C=arguments.length>5?arguments[5]:void 0,D=50-A/2,he=0,_e=-D,Ae=0,be=-2*D;switch(C){case"left":he=-D,_e=0,Ae=2*D,be=0;break;case"right":he=D,_e=0,Ae=-2*D,be=0;break;case"bottom":_e=D,be=2*D;break;default:}var G="M 50,50 m ".concat(he,",").concat(_e,`
|
|
a `).concat(D,",").concat(D," 0 1 1 ").concat(Ae,",").concat(-be,`
|
|
a `).concat(D,",").concat(D," 0 1 1 ").concat(-Ae,",").concat(be),$=Math.PI*2*D,me={stroke:v,strokeDasharray:"".concat(u/100*($-l),"px ").concat($,"px"),strokeDashoffset:"-".concat(l/2+M/100*($-l),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:G,pathStyle:me}}var F=function(u){var v=u.prefixCls,A=u.strokeWidth,l=u.trailWidth,C=u.gapDegree,D=u.gapPosition,he=u.trailColor,_e=u.strokeLinecap,Ae=u.style,be=u.className,G=u.strokeColor,$=u.percent,me=te(u,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),q=Object(re.useMemo)(function(){return le+=1,le},[]),Oe=z(0,100,he,A,C,D),S=Oe.pathString,Y=Oe.pathStyle,k=ge($),pe=ge(G),Me=pe.find(function(we){return Object.prototype.toString.call(we)==="[object Object]"}),ce=R(k),Ce=_(ce,1),Fe=Ce[0],U=function(){var Ne=0;return k.map(function(ke,$e){var Xe=pe[$e]||pe[pe.length-1],st=Object.prototype.toString.call(Xe)==="[object Object]"?"url(#".concat(v,"-gradient-").concat(q,")"):"",Ze=z(Ne,ke,Xe,A,C,D);return Ne+=ke,ie.a.createElement("path",{key:$e,className:"".concat(v,"-circle-path"),d:Ze.pathString,stroke:st,strokeLinecap:_e,strokeWidth:A,opacity:ke===0?0:1,fillOpacity:"0",style:Ze.pathStyle,ref:Fe[$e]})})};return ie.a.createElement("svg",W({className:ae()("".concat(v,"-circle"),be),viewBox:"0 0 100 100",style:Ae},me),Me&&ie.a.createElement("defs",null,ie.a.createElement("linearGradient",{id:"".concat(v,"-gradient-").concat(q),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Me).sort(function(we,Ne){return ye(we)-ye(Ne)}).map(function(we,Ne){return ie.a.createElement("stop",{key:Ne,offset:we,stopColor:Me[we]})}))),ie.a.createElement("path",{className:"".concat(v,"-circle-trail"),d:S,stroke:he,strokeLinecap:_e,strokeWidth:l||A,fillOpacity:"0",style:Y}),U().reverse())};F.defaultProps=y;var K=F,xe={Line:T,Circle:K}},ic2d:function(De,L,s){"use strict";s.d(L,"a",function(){return ae});var re=s("FWmy"),ie=s("746U");class Ie{constructor(){this.data=new Map}add(y,R){re.a(ie.l(y)),re.a(ie.k(R)),re.a(!this.data.has(y),"There is already an extension with this id"),this.data.set(y,R)}as(y){return this.data.get(y)||null}}const ae=new Ie},ji0R:function(De,L,s){De.exports=s.p+"static/douyu.3e6df9ee.jpg"},k3GJ:function(De,L,s){"use strict";s.d(L,"a",function(){return ar});var re=s("rePB"),ie=s("ODXe"),Ie=s("Ff2n"),ae=s("VTBJ"),y=s("q1tI"),R=s("TSYQ"),ue=s.n(R),se=s("Zm9Q"),a=s("6cGi"),N=s("KQm4"),I=s("xEkU"),E=s.n(I),f=s("t23M");function d(V){var de=Object(y.useRef)(),ve=Object(y.useRef)(!1);function X(){for(var O=arguments.length,B=new Array(O),x=0;x<O;x++)B[x]=arguments[x];ve.current||(E.a.cancel(de.current),de.current=E()(function(){V.apply(void 0,B)}))}return Object(y.useEffect)(function(){return function(){ve.current=!0,E.a.cancel(de.current)}},[]),X}function h(V){var de=Object(y.useRef)([]),ve=Object(y.useState)({}),X=Object(ie.a)(ve,2),O=X[1],B=Object(y.useRef)(typeof V=="function"?V():V),x=d(function(){var ne=B.current;de.current.forEach(function(Ee){ne=Ee(ne)}),de.current=[],B.current=ne,O({})});function ee(ne){de.current.push(ne),x()}return[B.current,ee]}var p=s("4IlW");function T(V,de){var ve,X=V.prefixCls,O=V.id,B=V.active,x=V.rtl,ee=V.tab,ne=ee.key,Ee=ee.tab,fe=ee.disabled,Se=ee.closeIcon,Le=V.tabBarGutter,Ke=V.tabPosition,He=V.closable,tt=V.renderWrapper,Tt=V.removeAriaLabel,Yt=V.editable,Ft=V.onClick,zt=V.onRemove,Vt=V.onFocus,Qt="".concat(X,"-tab");y.useEffect(function(){return zt},[]);var Gt={};Ke==="top"||Ke==="bottom"?Gt[x?"marginLeft":"marginRight"]=Le:Gt.marginBottom=Le;var on=Yt&&He!==!1&&!fe;function qt(Et){if(fe)return;Ft(Et)}function Yn(Et){Et.preventDefault(),Et.stopPropagation(),Yt.onEdit("remove",{key:ne,event:Et})}var $t=y.createElement("div",{key:ne,ref:de,className:ue()(Qt,(ve={},Object(re.a)(ve,"".concat(Qt,"-with-remove"),on),Object(re.a)(ve,"".concat(Qt,"-active"),B),Object(re.a)(ve,"".concat(Qt,"-disabled"),fe),ve)),style:Gt,onClick:qt},y.createElement("div",{role:"tab","aria-selected":B,id:O&&"".concat(O,"-tab-").concat(ne),className:"".concat(Qt,"-btn"),"aria-controls":O&&"".concat(O,"-panel-").concat(ne),"aria-disabled":fe,tabIndex:fe?null:0,onClick:function(gt){gt.stopPropagation(),qt(gt)},onKeyDown:function(gt){[p.a.SPACE,p.a.ENTER].includes(gt.which)&&(gt.preventDefault(),qt(gt))},onFocus:Vt},Ee),on&&y.createElement("button",{type:"button","aria-label":Tt||"remove",tabIndex:0,className:"".concat(Qt,"-remove"),onClick:function(gt){gt.stopPropagation(),Yn(gt)}},Se||Yt.removeIcon||"\xD7"));return tt&&($t=tt($t)),$t}var W=y.forwardRef(T),_={width:0,height:0,left:0,top:0};function g(V,de,ve){return Object(y.useMemo)(function(){for(var X,O=new Map,B=de.get((X=V[0])===null||X===void 0?void 0:X.key)||_,x=B.left+B.width,ee=0;ee<V.length;ee+=1){var ne=V[ee].key,Ee=de.get(ne);if(!Ee){var fe;Ee=de.get((fe=V[ee-1])===null||fe===void 0?void 0:fe.key)||_}var Se=O.get(ne)||Object(ae.a)({},Ee);Se.right=x-Se.left-Se.width,O.set(ne,Se)}return O},[V.map(function(X){return X.key}).join("_"),de,ve])}var j={width:0,height:0,left:0,top:0,right:0};function Q(V,de,ve,X,O){var B=O.tabs,x=O.tabPosition,ee=O.rtl,ne,Ee,fe;["top","bottom"].includes(x)?(ne="width",Ee=ee?"right":"left",fe=Math.abs(de.left)):(ne="height",Ee="top",fe=-de.top);var Se=de[ne],Le=ve[ne],Ke=X[ne],He=Se;return Le+Ke>Se&&(He=Se-Ke),Object(y.useMemo)(function(){if(!B.length)return[0,0];for(var tt=B.length,Tt=tt,Yt=0;Yt<tt;Yt+=1){var Ft=V.get(B[Yt].key)||j;if(Ft[Ee]+Ft[ne]>fe+He){Tt=Yt-1;break}}for(var zt=0,Vt=tt-1;Vt>=0;Vt-=1){var Qt=V.get(B[Vt].key)||j;if(Qt[Ee]<fe){zt=Vt+1;break}}return[zt,Tt]},[V,fe,He,x,B.map(function(tt){return tt.key}).join("_"),ee])}var J=s("wx14"),P=s("1OyB"),te=s("vuIU"),H=s("JX7q"),le=s("Ji7U"),ye=s("LK+K"),ge=s("I8Z2"),z=s("bT9E"),F=s("2GS6"),K=s("Gytx"),xe=s.n(K),M=s("U8pU"),u=/iPhone/i,v=/iPod/i,A=/iPad/i,l=/\bAndroid(?:.+)Mobile\b/i,C=/Android/i,D=/\bAndroid(?:.+)SD4930UR\b/i,he=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,_e=/Windows Phone/i,Ae=/\bWindows(?:.+)ARM\b/i,be=/BlackBerry/i,G=/BB10/i,$=/Opera Mini/i,me=/\b(CriOS|Chrome)(?:.+)Mobile/i,q=/Mobile(?:.+)Firefox\b/i;function Oe(V,de){return V.test(de)}function S(V){var de=V||(typeof navigator!="undefined"?navigator.userAgent:""),ve=(de||"").split("[FBAN");if(typeof ve[1]!="undefined"){var X=ve,O=Object(ie.a)(X,1);de=O[0]}if(ve=de.split("Twitter"),typeof ve[1]!="undefined"){var B=ve,x=Object(ie.a)(B,1);de=x[0]}var ee={apple:{phone:Oe(u,de)&&!Oe(_e,de),ipod:Oe(v,de),tablet:!Oe(u,de)&&Oe(A,de)&&!Oe(_e,de),device:(Oe(u,de)||Oe(v,de)||Oe(A,de))&&!Oe(_e,de)},amazon:{phone:Oe(D,de),tablet:!Oe(D,de)&&Oe(he,de),device:Oe(D,de)||Oe(he,de)},android:{phone:!Oe(_e,de)&&Oe(D,de)||!Oe(_e,de)&&Oe(l,de),tablet:!Oe(_e,de)&&!Oe(D,de)&&!Oe(l,de)&&(Oe(he,de)||Oe(C,de)),device:!Oe(_e,de)&&(Oe(D,de)||Oe(he,de)||Oe(l,de)||Oe(C,de))||Oe(/\bokhttp\b/i,de)},windows:{phone:Oe(_e,de),tablet:Oe(Ae,de),device:Oe(_e,de)||Oe(Ae,de)},other:{blackberry:Oe(be,de),blackberry10:Oe(G,de),opera:Oe($,de),firefox:Oe(q,de),chrome:Oe(me,de),device:Oe(be,de)||Oe(G,de)||Oe($,de)||Oe(q,de)||Oe(me,de)},any:null,phone:null,tablet:null};return ee.any=ee.apple.device||ee.android.device||ee.windows.device||ee.other.device,ee.phone=ee.apple.phone||ee.android.phone||ee.windows.phone,ee.tablet=ee.apple.tablet||ee.android.tablet||ee.windows.tablet,ee}var Y=Object(ae.a)(Object(ae.a)({},S()),{},{isMobile:S}),k=Y;function pe(){}function Me(V,de,ve){var X=de||"";return V.key||"".concat(X,"item_").concat(ve)}function ce(V){return"".concat(V,"-menu-")}function Ce(V,de){var ve=-1;y.Children.forEach(V,function(X){ve+=1,X&&X.type&&X.type.isMenuItemGroup?y.Children.forEach(X.props.children,function(O){ve+=1,de(O,ve)}):de(X,ve)})}function Fe(V,de,ve){if(!V||ve.find)return;y.Children.forEach(V,function(X){if(X){var O=X.type;if(!O||!(O.isSubMenu||O.isMenuItem||O.isMenuItemGroup))return;de.indexOf(X.key)!==-1?ve.find=!0:X.props.children&&Fe(X.props.children,de,ve)}})}var U=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],we=function(de){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,X=de&&typeof de.getBoundingClientRect=="function"&&de.getBoundingClientRect().width;if(X){if(ve){var O=getComputedStyle(de),B=O.marginLeft,x=O.marginRight;X+=+B.replace("px","")+ +x.replace("px","")}X=+X.toFixed(6)}return X||0},Ne=function(de,ve,X){de&&Object(M.a)(de.style)==="object"&&(de.style[ve]=X)},ke=function(){return k.any},$e=s("bdgK"),Xe=s("i8i4"),st=s.n(Xe),Ze=s("wgJM"),yt=s("l4aY"),At=s("m+aA"),Lt=s("c+Xe"),qe=s("zT1h"),Xn=s("QC+M");function xn(V,de,ve){return ve?V[0]===de[0]:V[0]===de[0]&&V[1]===de[1]}function Bt(V,de,ve){var X=V[de]||{};return Object(ae.a)(Object(ae.a)({},X),ve)}function ut(V,de,ve,X){for(var O=ve.points,B=Object.keys(V),x=0;x<B.length;x+=1){var ee=B[x];if(xn(V[ee].points,O,X))return"".concat(de,"-placement-").concat(ee)}return""}var Wt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var V=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(V)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(V==null?void 0:V.substr(0,4)))},It=s("MNnm");function pn(V,de){var ve={};return ve[V.toLowerCase()]=de.toLowerCase(),ve["Webkit".concat(V)]="webkit".concat(de),ve["Moz".concat(V)]="moz".concat(de),ve["ms".concat(V)]="MS".concat(de),ve["O".concat(V)]="o".concat(de.toLowerCase()),ve}function en(V,de){var ve={animationend:pn("Animation","AnimationEnd"),transitionend:pn("Transition","TransitionEnd")};return V&&("AnimationEvent"in de||delete ve.animationend.animation,"TransitionEvent"in de||delete ve.transitionend.transition),ve}var Rn=en(Object(It.a)(),typeof window!="undefined"?window:{}),oi={};if(Object(It.a)()){var On=document.createElement("div");oi=On.style}var si={};function Ti(V){if(si[V])return si[V];var de=Rn[V];if(de)for(var ve=Object.keys(de),X=ve.length,O=0;O<X;O+=1){var B=ve[O];if(Object.prototype.hasOwnProperty.call(de,B)&&B in oi)return si[V]=de[B],si[V]}return""}var li=Ti("animationend"),ir=Ti("transitionend"),rr=!!(li&&ir),Yi=li||"animationend",Pi=ir||"transitionend";function Si(V,de){if(!V)return null;if(Object(M.a)(V)==="object"){var ve=de.replace(/-\w/g,function(X){return X[1].toUpperCase()});return V[ve]}return"".concat(V,"-").concat(de)}var hi="none",mr="appear",ht="enter",We="leave",pt="none",Dt="prepare",Ht="start",Ut="active",In="end";function ln(V){var de=Object(y.useRef)(!1),ve=Object(y.useState)(V),X=Object(ie.a)(ve,2),O=X[0],B=X[1];function x(ee){de.current||B(ee)}return Object(y.useEffect)(function(){return function(){de.current=!0}},[]),[O,x]}var rt=Object(It.a)()?y.useLayoutEffect:y.useEffect,Ve=rt,at=function(){var V=y.useRef(null);function de(){Ze.a.cancel(V.current)}function ve(X){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;de();var B=Object(Ze.a)(function(){O<=1?X({isCanceled:function(){return B!==V.current}}):ve(X,O-1)});V.current=B}return y.useEffect(function(){return function(){de()}},[]),[ve,de]},Ye=[Dt,Ht,Ut,In],Ct=!1,Ge=!0;function ze(V){return V===Ut||V===In}var Zt=function(V,de){var ve=y.useState(pt),X=Object(ie.a)(ve,2),O=X[0],B=X[1],x=at(),ee=Object(ie.a)(x,2),ne=ee[0],Ee=ee[1];function fe(){B(Dt)}return Ve(function(){if(O!==pt&&O!==In){var Se=Ye.indexOf(O),Le=Ye[Se+1],Ke=de(O);Ke===Ct?B(Le):ne(function(He){function tt(){if(He.isCanceled())return;B(Le)}Ke===!0?tt():Promise.resolve(Ke).then(tt)})}},[V,O]),y.useEffect(function(){return function(){Ee()}},[]),[fe,O]},Ot=function(V){var de=Object(y.useRef)(),ve=Object(y.useRef)(V);ve.current=V;var X=y.useCallback(function(x){ve.current(x)},[]);function O(x){x&&(x.removeEventListener(Pi,X),x.removeEventListener(Yi,X))}function B(x){de.current&&de.current!==x&&O(de.current),x&&x!==de.current&&(x.addEventListener(Pi,X),x.addEventListener(Yi,X),de.current=x)}return y.useEffect(function(){return function(){O(de.current)}},[]),[B,O]};function kt(V,de,ve,X){var O=X.motionEnter,B=O===void 0?!0:O,x=X.motionAppear,ee=x===void 0?!0:x,ne=X.motionLeave,Ee=ne===void 0?!0:ne,fe=X.motionDeadline,Se=X.motionLeaveImmediately,Le=X.onAppearPrepare,Ke=X.onEnterPrepare,He=X.onLeavePrepare,tt=X.onAppearStart,Tt=X.onEnterStart,Yt=X.onLeaveStart,Ft=X.onAppearActive,zt=X.onEnterActive,Vt=X.onLeaveActive,Qt=X.onAppearEnd,Gt=X.onEnterEnd,on=X.onLeaveEnd,qt=X.onVisibleChanged,Yn=ln(),$t=Object(ie.a)(Yn,2),Et=$t[0],gt=$t[1],nn=ln(hi),sn=Object(ie.a)(nn,2),ft=sn[0],dn=sn[1],Vn=ln(null),gn=Object(ie.a)(Vn,2),Dn=gn[0],Sn=gn[1],ri=Object(y.useRef)(!1),_i=Object(y.useRef)(null),qn=Object(y.useRef)(!1),ji=Object(y.useRef)(null);function cr(){var jn=ve();return jn||ji.current}var Hi=Object(y.useRef)(!1);function yi(jn){var Tn=cr();if(jn&&!jn.deadline&&jn.target!==Tn)return;var Ei;ft===mr&&Hi.current?Ei=Qt==null?void 0:Qt(Tn,jn):ft===ht&&Hi.current?Ei=Gt==null?void 0:Gt(Tn,jn):ft===We&&Hi.current&&(Ei=on==null?void 0:on(Tn,jn)),Ei!==!1&&!qn.current&&(dn(hi),Sn(null))}var Bn=Ot(yi),Mn=Object(ie.a)(Bn,1),$n=Mn[0],Jn=y.useMemo(function(){var jn,Tn,Ei;switch(ft){case"appear":return jn={},Object(re.a)(jn,Dt,Le),Object(re.a)(jn,Ht,tt),Object(re.a)(jn,Ut,Ft),jn;case"enter":return Tn={},Object(re.a)(Tn,Dt,Ke),Object(re.a)(Tn,Ht,Tt),Object(re.a)(Tn,Ut,zt),Tn;case"leave":return Ei={},Object(re.a)(Ei,Dt,He),Object(re.a)(Ei,Ht,Yt),Object(re.a)(Ei,Ut,Vt),Ei;default:return{}}},[ft]),dr=Zt(ft,function(jn){if(jn===Dt){var Tn=Jn[Dt];return Tn?Tn(cr()):Ct}if(Cn in Jn){var Ei;Sn(((Ei=Jn[Cn])===null||Ei===void 0?void 0:Ei.call(Jn,cr(),null))||null)}return Cn===Ut&&($n(cr()),fe>0&&(clearTimeout(_i.current),_i.current=setTimeout(function(){yi({deadline:!0})},fe))),Ge}),Rr=Object(ie.a)(dr,2),Ir=Rr[0],Cn=Rr[1],_r=ze(Cn);Hi.current=_r,Ve(function(){gt(de);var jn=ri.current;if(ri.current=!0,!V)return;var Tn;!jn&&de&&ee&&(Tn=mr),jn&&de&&B&&(Tn=ht),(jn&&!de&&Ee||!jn&&Se&&!de&&Ee)&&(Tn=We),Tn&&(dn(Tn),Ir())},[de]),Object(y.useEffect)(function(){(ft===mr&&!ee||ft===ht&&!B||ft===We&&!Ee)&&dn(hi)},[ee,B,Ee]),Object(y.useEffect)(function(){return function(){clearTimeout(_i.current),qn.current=!0}},[]),Object(y.useEffect)(function(){Et!==void 0&&ft===hi&&(qt==null||qt(Et))},[Et,ft]);var Nr=Dn;return Jn[Dt]&&Cn===Ht&&(Nr=Object(ae.a)({transition:"none"},Nr)),[ft,Cn,Nr,Et!=null?Et:de]}var Nt=function(V){Object(le.a)(ve,V);var de=Object(ye.a)(ve);function ve(){return Object(P.a)(this,ve),de.apply(this,arguments)}return Object(te.a)(ve,[{key:"render",value:function(){return this.props.children}}]),ve}(y.Component),Kt=Nt;function un(V){var de=V;Object(M.a)(V)==="object"&&(de=V.transitionSupport);function ve(O){return!!(O.motionName&&de)}var X=y.forwardRef(function(O,B){var x=O.visible,ee=x===void 0?!0:x,ne=O.removeOnLeave,Ee=ne===void 0?!0:ne,fe=O.forceRender,Se=O.children,Le=O.motionName,Ke=O.leavedClassName,He=O.eventProps,tt=ve(O),Tt=Object(y.useRef)(),Yt=Object(y.useRef)();function Ft(){try{return Object(At.a)(Tt.current||Yt.current)}catch(dn){return null}}var zt=kt(tt,ee,Ft,O),Vt=Object(ie.a)(zt,4),Qt=Vt[0],Gt=Vt[1],on=Vt[2],qt=Vt[3],Yn=y.useRef(qt);qt&&(Yn.current=!0);var $t=Object(y.useRef)(B);$t.current=B;var Et=y.useCallback(function(dn){Tt.current=dn,Object(Lt.b)($t.current,dn)},[]),gt,nn=Object(ae.a)(Object(ae.a)({},He),{},{visible:ee});if(!Se)gt=null;else if(Qt===hi||!ve(O))qt?gt=Se(Object(ae.a)({},nn),Et):!Ee&&Yn.current?gt=Se(Object(ae.a)(Object(ae.a)({},nn),{},{className:Ke}),Et):fe?gt=Se(Object(ae.a)(Object(ae.a)({},nn),{},{style:{display:"none"}}),Et):gt=null;else{var sn,ft;Gt===Dt?ft="prepare":ze(Gt)?ft="active":Gt===Ht&&(ft="start"),gt=Se(Object(ae.a)(Object(ae.a)({},nn),{},{className:ue()(Si(Le,Qt),(sn={},Object(re.a)(sn,Si(Le,"".concat(Qt,"-").concat(ft)),ft),Object(re.a)(sn,Le,typeof Le=="string"),sn)),style:on}),Et)}return y.createElement(Kt,{ref:Yt},gt)});return X.displayName="CSSMotion",X}var Hn=un(rr),je="add",lt="keep",Un="remove",bi="removed";function wn(V){var de;return V&&Object(M.a)(V)==="object"&&"key"in V?de=V:de={key:V},Object(ae.a)(Object(ae.a)({},de),{},{key:String(de.key)})}function xt(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return V.map(wn)}function Rt(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ve=[],X=0,O=de.length,B=xt(V),x=xt(de);B.forEach(function(Ee){for(var fe=!1,Se=X;Se<O;Se+=1){var Le=x[Se];if(Le.key===Ee.key){X<Se&&(ve=ve.concat(x.slice(X,Se).map(function(Ke){return Object(ae.a)(Object(ae.a)({},Ke),{},{status:je})})),X=Se),ve.push(Object(ae.a)(Object(ae.a)({},Le),{},{status:lt})),X+=1,fe=!0;break}}fe||ve.push(Object(ae.a)(Object(ae.a)({},Ee),{},{status:Un}))}),X<O&&(ve=ve.concat(x.slice(X).map(function(Ee){return Object(ae.a)(Object(ae.a)({},Ee),{},{status:je})})));var ee={};ve.forEach(function(Ee){var fe=Ee.key;ee[fe]=(ee[fe]||0)+1});var ne=Object.keys(ee).filter(function(Ee){return ee[Ee]>1});return ne.forEach(function(Ee){ve=ve.filter(function(fe){var Se=fe.key,Le=fe.status;return Se!==Ee||Le!==Un}),ve.forEach(function(fe){fe.key===Ee&&(fe.status=lt)})}),ve}var et=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Pt(V){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hn,ve=function(X){Object(le.a)(B,X);var O=Object(ye.a)(B);function B(){var x;return Object(P.a)(this,B),x=O.apply(this,arguments),x.state={keyEntities:[]},x.removeKey=function(ee){x.setState(function(ne){var Ee=ne.keyEntities;return{keyEntities:Ee.map(function(fe){return fe.key!==ee?fe:Object(ae.a)(Object(ae.a)({},fe),{},{status:bi})})}})},x}return Object(te.a)(B,[{key:"render",value:function(){var ee=this,ne=this.state.keyEntities,Ee=this.props,fe=Ee.component,Se=Ee.children,Le=Ee.onVisibleChanged,Ke=Object(Ie.a)(Ee,["component","children","onVisibleChanged"]),He=fe||y.Fragment,tt={};return et.forEach(function(Tt){tt[Tt]=Ke[Tt],delete Ke[Tt]}),delete Ke.keys,y.createElement(He,Ke,ne.map(function(Tt){var Yt=Tt.status,Ft=Object(Ie.a)(Tt,["status"]),zt=Yt===je||Yt===lt;return y.createElement(de,Object(J.a)({},tt,{key:Ft.key,visible:zt,eventProps:Ft,onVisibleChanged:function(Qt){Le==null||Le(Qt,{key:Ft.key}),Qt||ee.removeKey(Ft.key)}}),Se)}))}}],[{key:"getDerivedStateFromProps",value:function(ee,ne){var Ee=ee.keys,fe=ne.keyEntities,Se=xt(Ee),Le=Rt(fe,Se);return{keyEntities:Le.filter(function(Ke){var He=fe.find(function(tt){var Tt=tt.key;return Ke.key===Tt});return!(He&&He.status===bi&&Ke.status===Un)})}}}]),B}(y.Component);return ve.defaultProps={component:"div"},ve}var bt=Pt(rr),mt=Hn;function Mt(V){var de=V.prefixCls,ve=V.motion,X=V.animation,O=V.transitionName;return ve||(X?{motionName:"".concat(de,"-").concat(X)}:O?{motionName:O}:null)}function Gn(V){var de=V.prefixCls,ve=V.visible,X=V.zIndex,O=V.mask,B=V.maskMotion,x=V.maskAnimation,ee=V.maskTransitionName;if(!O)return null;var ne={};return(B||ee||x)&&(ne=Object(ae.a)({motionAppear:!0},Mt({motion:B,prefixCls:de,transitionName:ee,animation:x}))),y.createElement(mt,Object(J.a)({},ne,{visible:ve,removeOnLeave:!0}),function(Ee){var fe=Ee.className;return y.createElement("div",{style:{zIndex:X},className:ue()("".concat(de,"-mask"),fe)})})}var yn=s("9mu1"),Jt=s("o0o1"),rn=s.n(Jt),fi=s("HaE+"),Kn=["measure","align",null,"motion"],ti=function(V,de){var ve=Object(y.useState)(null),X=Object(ie.a)(ve,2),O=X[0],B=X[1],x=Object(y.useRef)(),ee=Object(y.useRef)(!1);function ne(Se){ee.current||B(Se)}function Ee(){Ze.a.cancel(x.current)}function fe(Se){Ee(),x.current=Object(Ze.a)(function(){ne(function(Le){switch(O){case"align":return"motion";case"motion":return"stable";default:}return Le}),Se==null||Se()})}return Object(y.useEffect)(function(){ne("measure")},[V]),Object(y.useEffect)(function(){switch(O){case"measure":de();break;default:}O&&(x.current=Object(Ze.a)(Object(fi.a)(rn.a.mark(function Se(){var Le,Ke;return rn.a.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:Le=Kn.indexOf(O),Ke=Kn[Le+1],Ke&&Le!==-1&&ne(Ke);case 3:case"end":return tt.stop()}},Se)}))))},[O]),Object(y.useEffect)(function(){return function(){ee.current=!0,Ee()}},[]),[O,fe]},Fn=function(V){var de=y.useState({width:0,height:0}),ve=Object(ie.a)(de,2),X=ve[0],O=ve[1];function B(ee){O({width:ee.offsetWidth,height:ee.offsetHeight})}var x=y.useMemo(function(){var ee={};if(V){var ne=X.width,Ee=X.height;V.indexOf("height")!==-1&&Ee?ee.height=Ee:V.indexOf("minHeight")!==-1&&Ee&&(ee.minHeight=Ee),V.indexOf("width")!==-1&&ne?ee.width=ne:V.indexOf("minWidth")!==-1&&ne&&(ee.minWidth=ne)}return ee},[V,X]);return[x,B]},hn=y.forwardRef(function(V,de){var ve=V.visible,X=V.prefixCls,O=V.className,B=V.style,x=V.children,ee=V.zIndex,ne=V.stretch,Ee=V.destroyPopupOnHide,fe=V.forceRender,Se=V.align,Le=V.point,Ke=V.getRootDomNode,He=V.getClassNameFromAlign,tt=V.onAlign,Tt=V.onMouseEnter,Yt=V.onMouseLeave,Ft=V.onMouseDown,zt=V.onTouchStart,Vt=Object(y.useRef)(),Qt=Object(y.useRef)(),Gt=Object(y.useState)(),on=Object(ie.a)(Gt,2),qt=on[0],Yn=on[1],$t=Fn(ne),Et=Object(ie.a)($t,2),gt=Et[0],nn=Et[1];function sn(){ne&&nn(Ke())}var ft=ti(ve,sn),dn=Object(ie.a)(ft,2),Vn=dn[0],gn=dn[1],Dn=Object(y.useRef)();function Sn(){return Le||Ke}function ri(){var Bn;(Bn=Vt.current)===null||Bn===void 0||Bn.forceAlign()}function _i(Bn,Mn){var $n=He(Mn);qt!==$n&&Yn($n),Vn==="align"&&(qt!==$n?Promise.resolve().then(function(){ri()}):gn(function(){var Jn;(Jn=Dn.current)===null||Jn===void 0||Jn.call(Dn)}),tt==null||tt(Bn,Mn))}var qn=Object(ae.a)({},Mt(V));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Bn){var Mn=qn[Bn];qn[Bn]=function($n,Jn){return gn(),Mn==null?void 0:Mn($n,Jn)}});function ji(){return new Promise(function(Bn){Dn.current=Bn})}y.useEffect(function(){!qn.motionName&&Vn==="motion"&&gn()},[qn.motionName,Vn]),y.useImperativeHandle(de,function(){return{forceAlign:ri,getElement:function(){return Qt.current}}});var cr=Object(ae.a)(Object(ae.a)({},gt),{},{zIndex:ee,opacity:Vn==="motion"||Vn==="stable"||!ve?void 0:0,pointerEvents:Vn==="stable"?void 0:"none"},B),Hi=!0;(Se==null?void 0:Se.points)&&(Vn==="align"||Vn==="stable")&&(Hi=!1);var yi=x;return y.Children.count(x)>1&&(yi=y.createElement("div",{className:"".concat(X,"-content")},x)),y.createElement(mt,Object(J.a)({visible:ve,ref:Qt,leavedClassName:"".concat(X,"-hidden")},qn,{onAppearPrepare:ji,onEnterPrepare:ji,removeOnLeave:Ee,forceRender:fe}),function(Bn,Mn){var $n=Bn.className,Jn=Bn.style,dr=ue()(X,O,qt,$n);return y.createElement(yn.a,{target:Sn(),key:"popup",ref:Vt,monitorWindowResize:!0,disabled:Hi,align:Se,onAlign:_i},y.createElement("div",{ref:Mn,className:dr,onMouseEnter:Tt,onMouseLeave:Yt,onMouseDownCapture:Ft,onTouchStartCapture:zt,style:Object(ae.a)(Object(ae.a)({},Jn),cr)},yi))})});hn.displayName="PopupInner";var cn=hn,fn=y.forwardRef(function(V,de){var ve=V.prefixCls,X=V.visible,O=V.zIndex,B=V.children,x=V.mobile;x=x===void 0?{}:x;var ee=x.popupClassName,ne=x.popupStyle,Ee=x.popupMotion,fe=Ee===void 0?{}:Ee,Se=x.popupRender,Le=y.useRef();y.useImperativeHandle(de,function(){return{forceAlign:function(){},getElement:function(){return Le.current}}});var Ke=Object(ae.a)({zIndex:O},ne),He=B;return y.Children.count(B)>1&&(He=y.createElement("div",{className:"".concat(ve,"-content")},B)),Se&&(He=Se(He)),y.createElement(mt,Object(J.a)({visible:X,ref:Le,removeOnLeave:!0},fe),function(tt,Tt){var Yt=tt.className,Ft=tt.style,zt=ue()(ve,ee,Yt);return y.createElement("div",{ref:Tt,className:zt,style:Object(ae.a)(Object(ae.a)({},Ft),Ke)},He)})});fn.displayName="MobilePopupInner";var tn=fn,Ci=["visible","mobile"],kn=y.forwardRef(function(V,de){var ve=V.visible,X=V.mobile,O=Object(Ie.a)(V,Ci),B=Object(y.useState)(ve),x=Object(ie.a)(B,2),ee=x[0],ne=x[1],Ee=Object(y.useState)(!1),fe=Object(ie.a)(Ee,2),Se=fe[0],Le=fe[1],Ke=Object(ae.a)(Object(ae.a)({},O),{},{visible:ee});Object(y.useEffect)(function(){ne(ve),ve&&X&&Le(Wt())},[ve,X]);var He=Se?y.createElement(tn,Object(J.a)({},Ke,{mobile:X,ref:de})):y.createElement(cn,Object(J.a)({},Ke,{ref:de}));return y.createElement("div",null,y.createElement(Gn,Ke),He)});kn.displayName="Popup";var Qn=kn,sr=y.createContext(null),pi=sr;function lr(){}function jr(){return""}function _a(V){return V?V.ownerDocument:window.document}var Vr=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function sa(V){var de=function(ve){Object(le.a)(O,ve);var X=Object(ye.a)(O);function O(B){var x;Object(P.a)(this,O),x=X.call(this,B),x.popupRef=y.createRef(),x.triggerRef=y.createRef(),x.attachId=void 0,x.clickOutsideHandler=void 0,x.touchOutsideHandler=void 0,x.contextMenuOutsideHandler1=void 0,x.contextMenuOutsideHandler2=void 0,x.mouseDownTimeout=void 0,x.focusTime=void 0,x.preClickTime=void 0,x.preTouchTime=void 0,x.delayTimer=void 0,x.hasPopupMouseDown=void 0,x.onMouseEnter=function(ne){var Ee=x.props.mouseEnterDelay;x.fireEvents("onMouseEnter",ne),x.delaySetPopupVisible(!0,Ee,Ee?null:ne)},x.onMouseMove=function(ne){x.fireEvents("onMouseMove",ne),x.setPoint(ne)},x.onMouseLeave=function(ne){x.fireEvents("onMouseLeave",ne),x.delaySetPopupVisible(!1,x.props.mouseLeaveDelay)},x.onPopupMouseEnter=function(){x.clearDelayTimer()},x.onPopupMouseLeave=function(ne){var Ee;if(ne.relatedTarget&&!ne.relatedTarget.setTimeout&&Object(yt.a)((Ee=x.popupRef.current)===null||Ee===void 0?void 0:Ee.getElement(),ne.relatedTarget))return;x.delaySetPopupVisible(!1,x.props.mouseLeaveDelay)},x.onFocus=function(ne){x.fireEvents("onFocus",ne),x.clearDelayTimer(),x.isFocusToShow()&&(x.focusTime=Date.now(),x.delaySetPopupVisible(!0,x.props.focusDelay))},x.onMouseDown=function(ne){x.fireEvents("onMouseDown",ne),x.preClickTime=Date.now()},x.onTouchStart=function(ne){x.fireEvents("onTouchStart",ne),x.preTouchTime=Date.now()},x.onBlur=function(ne){x.fireEvents("onBlur",ne),x.clearDelayTimer(),x.isBlurToHide()&&x.delaySetPopupVisible(!1,x.props.blurDelay)},x.onContextMenu=function(ne){ne.preventDefault(),x.fireEvents("onContextMenu",ne),x.setPopupVisible(!0,ne)},x.onContextMenuClose=function(){x.isContextMenuToShow()&&x.close()},x.onClick=function(ne){if(x.fireEvents("onClick",ne),x.focusTime){var Ee;if(x.preClickTime&&x.preTouchTime?Ee=Math.min(x.preClickTime,x.preTouchTime):x.preClickTime?Ee=x.preClickTime:x.preTouchTime&&(Ee=x.preTouchTime),Math.abs(Ee-x.focusTime)<20)return;x.focusTime=0}x.preClickTime=0,x.preTouchTime=0,x.isClickToShow()&&(x.isClickToHide()||x.isBlurToHide())&&ne&&ne.preventDefault&&ne.preventDefault();var fe=!x.state.popupVisible;(x.isClickToHide()&&!fe||fe&&x.isClickToShow())&&x.setPopupVisible(!x.state.popupVisible,ne)},x.onPopupMouseDown=function(){if(x.hasPopupMouseDown=!0,clearTimeout(x.mouseDownTimeout),x.mouseDownTimeout=window.setTimeout(function(){x.hasPopupMouseDown=!1},0),x.context){var ne;(ne=x.context).onPopupMouseDown.apply(ne,arguments)}},x.onDocumentClick=function(ne){if(x.props.mask&&!x.props.maskClosable)return;var Ee=ne.target,fe=x.getRootDomNode(),Se=x.getPopupDomNode();(!Object(yt.a)(fe,Ee)||x.isContextMenuOnly())&&!Object(yt.a)(Se,Ee)&&!x.hasPopupMouseDown&&x.close()},x.getRootDomNode=function(){var ne=x.props.getTriggerDOMNode;if(ne)return ne(x.triggerRef.current);try{var Ee=Object(At.a)(x.triggerRef.current);if(Ee)return Ee}catch(fe){}return st.a.findDOMNode(Object(H.a)(x))},x.getPopupClassNameFromAlign=function(ne){var Ee=[],fe=x.props,Se=fe.popupPlacement,Le=fe.builtinPlacements,Ke=fe.prefixCls,He=fe.alignPoint,tt=fe.getPopupClassNameFromAlign;return Se&&Le&&Ee.push(ut(Le,Ke,ne,He)),tt&&Ee.push(tt(ne)),Ee.join(" ")},x.getComponent=function(){var ne=x.props,Ee=ne.prefixCls,fe=ne.destroyPopupOnHide,Se=ne.popupClassName,Le=ne.onPopupAlign,Ke=ne.popupMotion,He=ne.popupAnimation,tt=ne.popupTransitionName,Tt=ne.popupStyle,Yt=ne.mask,Ft=ne.maskAnimation,zt=ne.maskTransitionName,Vt=ne.maskMotion,Qt=ne.zIndex,Gt=ne.popup,on=ne.stretch,qt=ne.alignPoint,Yn=ne.mobile,$t=ne.forceRender,Et=x.state,gt=Et.popupVisible,nn=Et.point,sn=x.getPopupAlign(),ft={};return x.isMouseEnterToShow()&&(ft.onMouseEnter=x.onPopupMouseEnter),x.isMouseLeaveToHide()&&(ft.onMouseLeave=x.onPopupMouseLeave),ft.onMouseDown=x.onPopupMouseDown,ft.onTouchStart=x.onPopupMouseDown,y.createElement(Qn,Object(J.a)({prefixCls:Ee,destroyPopupOnHide:fe,visible:gt,point:qt&&nn,className:Se,align:sn,onAlign:Le,animation:He,getClassNameFromAlign:x.getPopupClassNameFromAlign},ft,{stretch:on,getRootDomNode:x.getRootDomNode,style:Tt,mask:Yt,zIndex:Qt,transitionName:tt,maskAnimation:Ft,maskTransitionName:zt,maskMotion:Vt,ref:x.popupRef,motion:Ke,mobile:Yn,forceRender:$t}),typeof Gt=="function"?Gt():Gt)},x.attachParent=function(ne){Ze.a.cancel(x.attachId);var Ee=x.props,fe=Ee.getPopupContainer,Se=Ee.getDocument,Le=x.getRootDomNode(),Ke;fe?(Le||fe.length===0)&&(Ke=fe(Le)):Ke=Se(x.getRootDomNode()).body,Ke?Ke.appendChild(ne):x.attachId=Object(Ze.a)(function(){x.attachParent(ne)})},x.getContainer=function(){var ne=x.props.getDocument,Ee=ne(x.getRootDomNode()).createElement("div");return Ee.style.position="absolute",Ee.style.top="0",Ee.style.left="0",Ee.style.width="100%",x.attachParent(Ee),Ee},x.setPoint=function(ne){var Ee=x.props.alignPoint;if(!Ee||!ne)return;x.setState({point:{pageX:ne.pageX,pageY:ne.pageY}})},x.handlePortalUpdate=function(){x.state.prevPopupVisible!==x.state.popupVisible&&x.props.afterPopupVisibleChange(x.state.popupVisible)},x.triggerContextValue={onPopupMouseDown:x.onPopupMouseDown};var ee;return"popupVisible"in B?ee=!!B.popupVisible:ee=!!B.defaultPopupVisible,x.state={prevPopupVisible:ee,popupVisible:ee},Vr.forEach(function(ne){x["fire".concat(ne)]=function(Ee){x.fireEvents(ne,Ee)}}),x}return Object(te.a)(O,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var x=this.props,ee=this.state;if(ee.popupVisible){var ne;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ne=x.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(qe.a)(ne,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ne=ne||x.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(qe.a)(ne,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ne=ne||x.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(qe.a)(ne,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(qe.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Ze.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var x;return((x=this.popupRef.current)===null||x===void 0?void 0:x.getElement())||null}},{key:"getPopupAlign",value:function(){var x=this.props,ee=x.popupPlacement,ne=x.popupAlign,Ee=x.builtinPlacements;return ee&&Ee?Bt(Ee,ee,ne):ne}},{key:"setPopupVisible",value:function(x,ee){var ne=this.props.alignPoint,Ee=this.state.popupVisible;this.clearDelayTimer(),Ee!==x&&("popupVisible"in this.props||this.setState({popupVisible:x,prevPopupVisible:Ee}),this.props.onPopupVisibleChange(x)),ne&&ee&&x&&this.setPoint(ee)}},{key:"delaySetPopupVisible",value:function(x,ee,ne){var Ee=this,fe=ee*1e3;if(this.clearDelayTimer(),fe){var Se=ne?{pageX:ne.pageX,pageY:ne.pageY}:null;this.delayTimer=window.setTimeout(function(){Ee.setPopupVisible(x,Se),Ee.clearDelayTimer()},fe)}else this.setPopupVisible(x,ne)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(x){var ee=this.props.children.props,ne=this.props;return ee[x]&&ne[x]?this["fire".concat(x)]:ee[x]||ne[x]}},{key:"isClickToShow",value:function(){var x=this.props,ee=x.action,ne=x.showAction;return ee.indexOf("click")!==-1||ne.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var x=this.props.action;return x==="contextMenu"||x.length===1&&x[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var x=this.props,ee=x.action,ne=x.showAction;return ee.indexOf("contextMenu")!==-1||ne.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var x=this.props,ee=x.action,ne=x.hideAction;return ee.indexOf("click")!==-1||ne.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var x=this.props,ee=x.action,ne=x.showAction;return ee.indexOf("hover")!==-1||ne.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var x=this.props,ee=x.action,ne=x.hideAction;return ee.indexOf("hover")!==-1||ne.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var x=this.props,ee=x.action,ne=x.showAction;return ee.indexOf("focus")!==-1||ne.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var x=this.props,ee=x.action,ne=x.hideAction;return ee.indexOf("focus")!==-1||ne.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var x;(x=this.popupRef.current)===null||x===void 0||x.forceAlign()}}},{key:"fireEvents",value:function(x,ee){var ne=this.props.children.props[x];ne&&ne(ee);var Ee=this.props[x];Ee&&Ee(ee)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var x=this.state.popupVisible,ee=this.props,ne=ee.children,Ee=ee.forceRender,fe=ee.alignPoint,Se=ee.className,Le=ee.autoDestroy,Ke=y.Children.only(ne),He={key:"trigger"};this.isContextMenuToShow()?He.onContextMenu=this.onContextMenu:He.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(He.onClick=this.onClick,He.onMouseDown=this.onMouseDown,He.onTouchStart=this.onTouchStart):(He.onClick=this.createTwoChains("onClick"),He.onMouseDown=this.createTwoChains("onMouseDown"),He.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(He.onMouseEnter=this.onMouseEnter,fe&&(He.onMouseMove=this.onMouseMove)):He.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?He.onMouseLeave=this.onMouseLeave:He.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(He.onFocus=this.onFocus,He.onBlur=this.onBlur):(He.onFocus=this.createTwoChains("onFocus"),He.onBlur=this.createTwoChains("onBlur"));var tt=ue()(Ke&&Ke.props&&Ke.props.className,Se);tt&&(He.className=tt);var Tt=Object(ae.a)({},He);Object(Lt.c)(Ke)&&(Tt.ref=Object(Lt.a)(this.triggerRef,Ke.ref));var Yt=y.cloneElement(Ke,Tt),Ft;return(x||this.popupRef.current||Ee)&&(Ft=y.createElement(V,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!x&&Le&&(Ft=null),y.createElement(pi.Provider,{value:this.triggerContextValue},Yt,Ft)}}],[{key:"getDerivedStateFromProps",value:function(x,ee){var ne=x.popupVisible,Ee={};return ne!==void 0&&ee.popupVisible!==ne&&(Ee.popupVisible=ne,Ee.prevPopupVisible=ee.popupVisible),Ee}}]),O}(y.Component);return de.contextType=pi,de.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:jr,getDocument:_a,onPopupVisibleChange:lr,afterPopupVisibleChange:lr,onPopupAlign:lr,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},de}var Ur=sa(Xn.a),Vi={adjustX:1,adjustY:1},En={topLeft:{points:["bl","tl"],overflow:Vi,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Vi,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Vi,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Vi,offset:[4,0]}},vn={topLeft:{points:["bl","tl"],overflow:Vi,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Vi,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Vi,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Vi,offset:[4,0]}},Zn=En,Di=0,ur={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},xi=function(de,ve,X){var O=ce(ve),B=de.getState();de.setState({defaultActiveFirst:Object(ae.a)(Object(ae.a)({},B.defaultActiveFirst),{},Object(re.a)({},O,X))})},Bi=function(V){Object(le.a)(ve,V);var de=Object(ye.a)(ve);function ve(X){var O;Object(P.a)(this,ve),O=de.call(this,X),O.onDestroy=function(fe){O.props.onDestroy(fe)},O.onKeyDown=function(fe){var Se=fe.keyCode,Le=O.menuInstance,Ke=O.props.store,He=O.getVisible();if(Se===p.a.ENTER)return O.onTitleClick(fe),xi(Ke,O.props.eventKey,!0),!0;if(Se===p.a.RIGHT)return He?Le.onKeyDown(fe):(O.triggerOpenChange(!0),xi(Ke,O.props.eventKey,!0)),!0;if(Se===p.a.LEFT){var tt;if(He)tt=Le.onKeyDown(fe);else return;return tt||(O.triggerOpenChange(!1),tt=!0),tt}return He&&(Se===p.a.UP||Se===p.a.DOWN)?Le.onKeyDown(fe):void 0},O.onOpenChange=function(fe){O.props.onOpenChange(fe)},O.onPopupVisibleChange=function(fe){O.triggerOpenChange(fe,fe?"mouseenter":"mouseleave")},O.onMouseEnter=function(fe){var Se=O.props,Le=Se.eventKey,Ke=Se.onMouseEnter,He=Se.store;xi(He,O.props.eventKey,!1),Ke({key:Le,domEvent:fe})},O.onMouseLeave=function(fe){var Se=O.props,Le=Se.parentMenu,Ke=Se.eventKey,He=Se.onMouseLeave;Le.subMenuInstance=Object(H.a)(O),He({key:Ke,domEvent:fe})},O.onTitleMouseEnter=function(fe){var Se=O.props,Le=Se.eventKey,Ke=Se.onItemHover,He=Se.onTitleMouseEnter;Ke({key:Le,hover:!0}),He({key:Le,domEvent:fe})},O.onTitleMouseLeave=function(fe){var Se=O.props,Le=Se.parentMenu,Ke=Se.eventKey,He=Se.onItemHover,tt=Se.onTitleMouseLeave;Le.subMenuInstance=Object(H.a)(O),He({key:Ke,hover:!1}),tt({key:Ke,domEvent:fe})},O.onTitleClick=function(fe){var Se=Object(H.a)(O),Le=Se.props;if(Le.onTitleClick({key:Le.eventKey,domEvent:fe}),Le.triggerSubMenuAction==="hover")return;O.triggerOpenChange(!O.getVisible(),"click"),xi(Le.store,O.props.eventKey,!1)},O.onSubMenuClick=function(fe){typeof O.props.onClick=="function"&&O.props.onClick(O.addKeyPath(fe))},O.onSelect=function(fe){O.props.onSelect(fe)},O.onDeselect=function(fe){O.props.onDeselect(fe)},O.getPrefixCls=function(){return"".concat(O.props.rootPrefixCls,"-submenu")},O.getActiveClassName=function(){return"".concat(O.getPrefixCls(),"-active")},O.getDisabledClassName=function(){return"".concat(O.getPrefixCls(),"-disabled")},O.getSelectedClassName=function(){return"".concat(O.getPrefixCls(),"-selected")},O.getOpenClassName=function(){return"".concat(O.props.rootPrefixCls,"-submenu-open")},O.getVisible=function(){return O.state.isOpen},O.getMode=function(){return O.state.mode},O.saveMenuInstance=function(fe){O.menuInstance=fe},O.addKeyPath=function(fe){return Object(ae.a)(Object(ae.a)({},fe),{},{keyPath:(fe.keyPath||[]).concat(O.props.eventKey)})},O.triggerOpenChange=function(fe,Se){var Le=O.props.eventKey,Ke=function(){O.onOpenChange({key:Le,item:Object(H.a)(O),trigger:Se,open:fe})};Se==="mouseenter"?O.mouseenterTimeout=setTimeout(function(){Ke()},0):Ke()},O.isChildrenSelected=function(){var fe={find:!1};return Fe(O.props.children,O.props.selectedKeys,fe),fe.find},O.isInlineMode=function(){return O.getMode()==="inline"},O.adjustWidth=function(){if(!O.subMenuTitle||!O.menuInstance)return;var fe=Xe.findDOMNode(O.menuInstance);if(fe.offsetWidth>=O.subMenuTitle.offsetWidth)return;fe.style.minWidth="".concat(O.subMenuTitle.offsetWidth,"px")},O.saveSubMenuTitle=function(fe){O.subMenuTitle=fe},O.getBaseProps=function(){var fe=Object(H.a)(O),Se=fe.props,Le=O.getMode();return{mode:Le==="horizontal"?"vertical":Le,visible:O.getVisible(),level:Se.level+1,inlineIndent:Se.inlineIndent,focusable:!1,onClick:O.onSubMenuClick,onSelect:O.onSelect,onDeselect:O.onDeselect,onDestroy:O.onDestroy,selectedKeys:Se.selectedKeys,eventKey:"".concat(Se.eventKey,"-menu-"),openKeys:Se.openKeys,motion:Se.motion,onOpenChange:O.onOpenChange,subMenuOpenDelay:Se.subMenuOpenDelay,parentMenu:Object(H.a)(O),subMenuCloseDelay:Se.subMenuCloseDelay,forceSubMenuRender:Se.forceSubMenuRender,triggerSubMenuAction:Se.triggerSubMenuAction,builtinPlacements:Se.builtinPlacements,defaultActiveFirst:Se.store.getState().defaultActiveFirst[ce(Se.eventKey)],multiple:Se.multiple,prefixCls:Se.rootPrefixCls,id:O.internalMenuId,manualRef:O.saveMenuInstance,itemIcon:Se.itemIcon,expandIcon:Se.expandIcon,direction:Se.direction}},O.getMotion=function(fe,Se){var Le=Object(H.a)(O),Ke=Le.haveRendered,He=O.props,tt=He.motion,Tt=He.rootPrefixCls,Yt=Object(ae.a)(Object(ae.a)({},tt),{},{leavedClassName:"".concat(Tt,"-hidden"),removeOnLeave:!1,motionAppear:Ke||!Se||fe!=="inline"});return Yt};var B=X.store,x=X.eventKey,ee=B.getState(),ne=ee.defaultActiveFirst;O.isRootMenu=!1;var Ee=!1;return ne&&(Ee=ne[x]),xi(B,x,Ee),O.state={mode:X.mode,isOpen:X.isOpen},O}return Object(te.a)(ve,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var O=this,B=this.props,x=B.mode,ee=B.parentMenu,ne=B.manualRef,Ee=B.isOpen,fe=function(){O.setState({mode:x,isOpen:Ee})},Se=Ee!==this.state.isOpen,Le=x!==this.state.mode;if((Le||Se)&&(Ze.a.cancel(this.updateStateRaf),Le?this.updateStateRaf=Object(Ze.a)(fe):fe()),ne&&ne(this),x!=="horizontal"||!(ee==null?void 0:ee.isRootMenu)||!Ee)return;this.minWidthTimeout=setTimeout(function(){return O.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var O=this.props,B=O.onDestroy,x=O.eventKey;B&&B(x),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Ze.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(O,B){var x=this.getBaseProps();return y.createElement(Jr,Object(J.a)({},x,{id:this.internalMenuId,className:O,style:B}),this.props.children)}},{key:"renderChildren",value:function(){var O=this,B=this.getBaseProps(),x=B.mode,ee=B.visible,ne=B.forceSubMenuRender,Ee=B.direction,fe=this.getMotion(x,ee);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ee||ne,!this.haveOpened)return y.createElement("div",null);var Se=ue()("".concat(B.prefixCls,"-sub"),Object(re.a)({},"".concat(B.prefixCls,"-rtl"),Ee==="rtl"));return this.isInlineMode()?y.createElement(mt,Object(J.a)({visible:B.visible,forceRender:ne},fe),function(Le){var Ke=Le.className,He=Le.style,tt=ue()(Se,Ke);return O.renderPopupMenu(tt,He)}):this.renderPopupMenu(Se)}},{key:"render",value:function(){var O,B,x,ee=Object(ae.a)({},this.props),ne=this.getVisible(),Ee=this.getPrefixCls(),fe=this.isInlineMode(),Se=this.getMode(),Le=ue()(Ee,"".concat(Ee,"-").concat(Se),(O={},Object(re.a)(O,ee.className,!!ee.className),Object(re.a)(O,this.getOpenClassName(),ne),Object(re.a)(O,this.getActiveClassName(),ee.active||ne&&!fe),Object(re.a)(O,this.getDisabledClassName(),ee.disabled),Object(re.a)(O,this.getSelectedClassName(),this.isChildrenSelected()),O));this.internalMenuId||(ee.eventKey?this.internalMenuId="".concat(ee.eventKey,"$Menu"):(Di+=1,this.internalMenuId="$__$".concat(Di,"$Menu")));var Ke={},He={},tt={};ee.disabled||(Ke={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},He={onClick:this.onTitleClick},tt={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Tt={},Yt=ee.direction,Ft=Yt==="rtl";fe&&(Ft?Tt.paddingRight=ee.inlineIndent*ee.level:Tt.paddingLeft=ee.inlineIndent*ee.level);var zt={};this.getVisible()&&(zt={"aria-owns":this.internalMenuId});var Vt=null;Se!=="horizontal"&&(Vt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Vt=y.createElement(this.props.expandIcon,Object(ae.a)({},this.props))));var Qt=y.createElement("div",Object(J.a)({ref:this.saveSubMenuTitle,style:Tt,className:"".concat(Ee,"-title"),role:"button"},tt,He,{"aria-expanded":ne},zt,{"aria-haspopup":"true",title:typeof ee.title=="string"?ee.title:void 0}),ee.title,Vt||y.createElement("i",{className:"".concat(Ee,"-arrow")})),Gt=this.renderChildren(),on=((B=ee.parentMenu)===null||B===void 0?void 0:B.isRootMenu)?ee.parentMenu.props.getPopupContainer:function(Sn){return Sn.parentNode},qt=ur[Se],Yn=ee.popupOffset?{offset:ee.popupOffset}:{},$t=ue()((x={},Object(re.a)(x,ee.popupClassName,ee.popupClassName&&!fe),Object(re.a)(x,"".concat(Ee,"-rtl"),Ft),x)),Et=ee.disabled,gt=ee.triggerSubMenuAction,nn=ee.subMenuOpenDelay,sn=ee.forceSubMenuRender,ft=ee.subMenuCloseDelay,dn=ee.builtinPlacements;U.forEach(function(Sn){return delete ee[Sn]}),delete ee.onClick;var Vn=Ft?Object(ae.a)(Object(ae.a)({},vn),dn):Object(ae.a)(Object(ae.a)({},En),dn);delete ee.direction;var gn=this.getBaseProps(),Dn=fe?null:this.getMotion(gn.mode,gn.visible);return y.createElement("li",Object(J.a)({},ee,Ke,{className:Le,role:"menuitem"}),y.createElement(Ur,{prefixCls:Ee,popupClassName:ue()("".concat(Ee,"-popup"),$t),getPopupContainer:on,builtinPlacements:Vn,popupPlacement:qt,popupVisible:fe?!1:ne,popupAlign:Yn,popup:fe?null:Gt,action:Et||fe?[]:[gt],mouseEnterDelay:nn,mouseLeaveDelay:ft,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:sn,popupMotion:Dn},Qt),fe?Gt:null)}}]),ve}(y.Component);Bi.defaultProps={onMouseEnter:pe,onMouseLeave:pe,onTitleMouseEnter:pe,onTitleMouseLeave:pe,onTitleClick:pe,manualRef:pe,mode:"vertical",title:""};var Ji=Object(ge.b)(function(V,de){var ve=V.openKeys,X=V.activeKey,O=V.selectedKeys,B=de.eventKey,x=de.subMenuKey;return{isOpen:ve.indexOf(B)>-1,active:X[x]===B,selectedKeys:O}})(Bi);Ji.isSubMenu=!0;var Pn=Ji,Wi="menuitem-overflowed",yr=.5,Mi=function(V){Object(le.a)(ve,V);var de=Object(ye.a)(ve);function ve(){var X;return Object(P.a)(this,ve),X=de.apply(this,arguments),X.resizeObserver=null,X.mutationObserver=null,X.originalTotalWidth=0,X.overflowedItems=[],X.menuItemSizes=[],X.cancelFrameId=null,X.state={lastVisibleIndex:void 0},X.childRef=y.createRef(),X.getMenuItemNodes=function(){var O=X.props.prefixCls,B=X.childRef.current;return B?[].slice.call(B.children).filter(function(x){return x.className.split(" ").indexOf("".concat(O,"-overflowed-submenu"))<0}):[]},X.getOverflowedSubMenuItem=function(O,B,x){var ee=X.props,ne=ee.overflowedIndicator,Ee=ee.level,fe=ee.mode,Se=ee.prefixCls,Le=ee.theme;if(Ee!==1||fe!=="horizontal")return null;var Ke=X.props.children[0],He=Ke.props,tt=He.children,Tt=He.title,Yt=He.style,Ft=Object(Ie.a)(He,["children","title","style"]),zt=Object(ae.a)({},Yt),Vt="".concat(O,"-overflowed-indicator"),Qt="".concat(O,"-overflowed-indicator");B.length===0&&x!==!0?zt=Object(ae.a)(Object(ae.a)({},zt),{},{display:"none"}):x&&(zt=Object(ae.a)(Object(ae.a)({},zt),{},{visibility:"hidden",position:"absolute"}),Vt="".concat(Vt,"-placeholder"),Qt="".concat(Qt,"-placeholder"));var Gt=Le?"".concat(Se,"-").concat(Le):"",on={};return U.forEach(function(qt){Ft[qt]!==void 0&&(on[qt]=Ft[qt])}),y.createElement(Pn,Object(J.a)({title:ne,className:"".concat(Se,"-overflowed-submenu"),popupClassName:Gt},on,{key:Vt,eventKey:Qt,disabled:!1,style:zt}),B)},X.setChildrenWidthAndResize=function(){if(X.props.mode!=="horizontal")return;var O=X.childRef.current;if(!O)return;var B=O.children;if(!B||B.length===0)return;var x=O.children[B.length-1];Ne(x,"display","inline-block");var ee=X.getMenuItemNodes(),ne=ee.filter(function(Ee){return Ee.className.split(" ").indexOf(Wi)>=0});ne.forEach(function(Ee){Ne(Ee,"display","inline-block")}),X.menuItemSizes=ee.map(function(Ee){return we(Ee,!0)}),ne.forEach(function(Ee){Ne(Ee,"display","none")}),X.overflowedIndicatorWidth=we(O.children[O.children.length-1],!0),X.originalTotalWidth=X.menuItemSizes.reduce(function(Ee,fe){return Ee+fe},0),X.handleResize(),Ne(x,"display","none")},X.handleResize=function(){if(X.props.mode!=="horizontal")return;var O=X.childRef.current;if(!O)return;var B=we(O);X.overflowedItems=[];var x=0,ee;X.originalTotalWidth>B+yr&&(ee=-1,X.menuItemSizes.forEach(function(ne){x+=ne,x+X.overflowedIndicatorWidth<=B&&(ee+=1)})),X.setState({lastVisibleIndex:ee})},X}return Object(te.a)(ve,[{key:"componentDidMount",value:function(){var O=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var B=this.childRef.current;if(!B)return;this.resizeObserver=new $e.default(function(x){x.forEach(function(){var ee=O.cancelFrameId;cancelAnimationFrame(ee),O.cancelFrameId=requestAnimationFrame(O.setChildrenWidthAndResize)})}),[].slice.call(B.children).concat(B).forEach(function(x){O.resizeObserver.observe(x)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){O.resizeObserver.disconnect(),[].slice.call(B.children).concat(B).forEach(function(x){O.resizeObserver.observe(x)}),O.setChildrenWidthAndResize()}),this.mutationObserver.observe(B,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(O){var B=this,x=this.state.lastVisibleIndex;return(O||[]).reduce(function(ee,ne,Ee){var fe=ne;if(B.props.mode==="horizontal"){var Se=B.getOverflowedSubMenuItem(ne.props.eventKey,[]);x!==void 0&&B.props.className.indexOf("".concat(B.props.prefixCls,"-root"))!==-1&&(Ee>x&&(fe=y.cloneElement(ne,{style:{display:"none"},eventKey:"".concat(ne.props.eventKey,"-hidden"),className:"".concat(Wi)})),Ee===x+1&&(B.overflowedItems=O.slice(x+1).map(function(Ke){return y.cloneElement(Ke,{key:Ke.props.eventKey,mode:"vertical-left"})}),Se=B.getOverflowedSubMenuItem(ne.props.eventKey,B.overflowedItems)));var Le=[].concat(Object(N.a)(ee),[Se,fe]);return Ee===O.length-1&&Le.push(B.getOverflowedSubMenuItem(ne.props.eventKey,[],!0)),Le}return[].concat(Object(N.a)(ee),[fe])},[])}},{key:"render",value:function(){var O=this.props,B=O.visible,x=O.prefixCls,ee=O.overflowedIndicator,ne=O.mode,Ee=O.level,fe=O.tag,Se=O.children,Le=O.theme,Ke=Object(Ie.a)(O,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),He=fe;return y.createElement(He,Object(J.a)({ref:this.childRef},Ke),this.renderChildren(Se))}}]),ve}(y.Component);Mi.defaultProps={tag:"div",className:""};var ya=Mi;function gr(V){return V.length?V.every(function(de){return!!de.props.disabled}):!0}function vr(V,de,ve){var X=V.getState();V.setState({activeKey:Object(ae.a)(Object(ae.a)({},X.activeKey),{},Object(re.a)({},de,ve))})}function Sr(V){return V.eventKey||"0-menu-"}function Xi(V,de){var ve=de,X=V.children,O=V.eventKey;if(ve){var B;if(Ce(X,function(x,ee){x&&x.props&&!x.props.disabled&&ve===Me(x,O,ee)&&(B=!0)}),B)return ve}return ve=null,V.defaultActiveFirst&&Ce(X,function(x,ee){!ve&&x&&!x.props.disabled&&(ve=Me(x,O,ee))}),ve}function la(V){if(!V)return;var de=this.instanceArray.indexOf(V);de!==-1?this.instanceArray[de]=V:this.instanceArray.push(V)}var Zi=function(V){Object(le.a)(ve,V);var de=Object(ye.a)(ve);function ve(X){var O;return Object(P.a)(this,ve),O=de.call(this,X),O.onKeyDown=function(B,x){var ee=B.keyCode,ne;if(O.getFlatInstanceArray().forEach(function(fe){fe&&fe.props.active&&fe.onKeyDown&&(ne=fe.onKeyDown(B))}),ne)return 1;var Ee=null;return(ee===p.a.UP||ee===p.a.DOWN)&&(Ee=O.step(ee===p.a.UP?-1:1)),Ee?(B.preventDefault(),vr(O.props.store,Sr(O.props),Ee.props.eventKey),typeof x=="function"&&x(Ee),1):void 0},O.onItemHover=function(B){var x=B.key,ee=B.hover;vr(O.props.store,Sr(O.props),ee?x:null)},O.onDeselect=function(B){O.props.onDeselect(B)},O.onSelect=function(B){O.props.onSelect(B)},O.onClick=function(B){O.props.onClick(B)},O.onOpenChange=function(B){O.props.onOpenChange(B)},O.onDestroy=function(B){O.props.onDestroy(B)},O.getFlatInstanceArray=function(){return O.instanceArray},O.step=function(B){var x=O.getFlatInstanceArray(),ee=O.props.store.getState().activeKey[Sr(O.props)],ne=x.length;if(!ne)return null;B<0&&(x=x.concat().reverse());var Ee=-1;if(x.every(function(Ke,He){return Ke&&Ke.props.eventKey===ee?(Ee=He,!1):!0}),!O.props.defaultActiveFirst&&Ee!==-1&&gr(x.slice(Ee,ne-1)))return;var fe=(Ee+1)%ne,Se=fe;do{var Le=x[Se];if(!Le||Le.props.disabled)Se=(Se+1)%ne;else return Le}while(Se!==fe);return null},O.renderCommonMenuItem=function(B,x,ee){var ne=O.props.store.getState(),Ee=Object(H.a)(O),fe=Ee.props,Se=Me(B,fe.eventKey,x),Le=B.props;if(!Le||typeof B.type=="string")return B;var Ke=Se===ne.activeKey,He=Object(ae.a)(Object(ae.a)({mode:Le.mode||fe.mode,level:fe.level,inlineIndent:fe.inlineIndent,renderMenuItem:O.renderMenuItem,rootPrefixCls:fe.prefixCls,index:x,parentMenu:fe.parentMenu,manualRef:Le.disabled?void 0:Object(F.a)(B.ref,la.bind(Object(H.a)(O))),eventKey:Se,active:!Le.disabled&&Ke,multiple:fe.multiple,onClick:function(Tt){(Le.onClick||pe)(Tt),O.onClick(Tt)},onItemHover:O.onItemHover,motion:fe.motion,subMenuOpenDelay:fe.subMenuOpenDelay,subMenuCloseDelay:fe.subMenuCloseDelay,forceSubMenuRender:fe.forceSubMenuRender,onOpenChange:O.onOpenChange,onDeselect:O.onDeselect,onSelect:O.onSelect,builtinPlacements:fe.builtinPlacements,itemIcon:Le.itemIcon||O.props.itemIcon,expandIcon:Le.expandIcon||O.props.expandIcon},ee),{},{direction:fe.direction});return(fe.mode==="inline"||ke())&&(He.triggerSubMenuAction="click"),y.cloneElement(B,Object(ae.a)(Object(ae.a)({},He),{},{key:Se||x}))},O.renderMenuItem=function(B,x,ee){if(!B)return null;var ne=O.props.store.getState(),Ee={openKeys:ne.openKeys,selectedKeys:ne.selectedKeys,triggerSubMenuAction:O.props.triggerSubMenuAction,subMenuKey:ee};return O.renderCommonMenuItem(B,x,Ee)},X.store.setState({activeKey:Object(ae.a)(Object(ae.a)({},X.store.getState().activeKey),{},Object(re.a)({},X.eventKey,Xi(X,X.activeKey)))}),O.instanceArray=[],O}return Object(te.a)(ve,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(O){return this.props.visible||O.visible||this.props.className!==O.className||!xe()(this.props.style,O.style)}},{key:"componentDidUpdate",value:function(O){var B=this.props,x="activeKey"in B?B.activeKey:B.store.getState().activeKey[Sr(B)],ee=Xi(B,x);if(ee!==x)vr(B.store,Sr(B),ee);else if("activeKey"in O){var ne=Xi(O,O.activeKey);ee!==ne&&vr(B.store,Sr(B),ee)}}},{key:"render",value:function(){var O=this,B=Object(J.a)({},this.props);this.instanceArray=[];var x=ue()(B.prefixCls,B.className,"".concat(B.prefixCls,"-").concat(B.mode)),ee={className:x,role:B.role||"menu"};B.id&&(ee.id=B.id),B.focusable&&(ee.tabIndex=0,ee.onKeyDown=this.onKeyDown);var ne=B.prefixCls,Ee=B.eventKey,fe=B.visible,Se=B.level,Le=B.mode,Ke=B.overflowedIndicator,He=B.theme;return U.forEach(function(tt){return delete B[tt]}),delete B.onClick,y.createElement(ya,Object(J.a)({},B,{prefixCls:ne,mode:Le,tag:"ul",level:Se,theme:He,visible:fe,overflowedIndicator:Ke},ee),Object(se.a)(B.children).map(function(tt,Tt){return O.renderMenuItem(tt,Tt,Ee||"0-menu-")}))}}]),ve}(y.Component);Zi.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:pe};var Fr=Object(ge.b)()(Zi),Jr=Fr,Cr=s("Kwbf");function Ya(V,de,ve){var X=V.prefixCls,O=V.motion,B=V.defaultMotions,x=B===void 0?{}:B,ee=V.openAnimation,ne=V.openTransitionName,Ee=de.switchingModeFromInline;if(O)return O;if(Object(M.a)(ee)==="object"&&ee)Object(Cr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ee=="string")return{motionName:"".concat(X,"-open-").concat(ee)};if(ne)return{motionName:ne};var fe=x[ve];return fe||(Ee?null:x.other)}var ua=function(V){Object(le.a)(ve,V);var de=Object(ye.a)(ve);function ve(X){var O;Object(P.a)(this,ve),O=de.call(this,X),O.onSelect=function(ee){var ne=Object(H.a)(O),Ee=ne.props;if(Ee.selectable){var fe=O.store.getState(),Se=fe.selectedKeys,Le=ee.key;Ee.multiple?Se=Se.concat([Le]):Se=[Le],"selectedKeys"in Ee||O.store.setState({selectedKeys:Se}),Ee.onSelect(Object(ae.a)(Object(ae.a)({},ee),{},{selectedKeys:Se}))}},O.onClick=function(ee){var ne=O.getRealMenuMode(),Ee=Object(H.a)(O),fe=Ee.store,Se=Ee.props.onOpenChange;ne!=="inline"&&!("openKeys"in O.props)&&(fe.setState({openKeys:[]}),Se([])),O.props.onClick(ee)},O.onKeyDown=function(ee,ne){O.innerMenu.getWrappedInstance().onKeyDown(ee,ne)},O.onOpenChange=function(ee){var ne=Object(H.a)(O),Ee=ne.props,fe=O.store.getState().openKeys.concat(),Se=!1,Le=function(He){var tt=!1;if(He.open)tt=fe.indexOf(He.key)===-1,tt&&fe.push(He.key);else{var Tt=fe.indexOf(He.key);tt=Tt!==-1,tt&&fe.splice(Tt,1)}Se=Se||tt};Array.isArray(ee)?ee.forEach(Le):Le(ee),Se&&("openKeys"in O.props||O.store.setState({openKeys:fe}),Ee.onOpenChange(fe))},O.onDeselect=function(ee){var ne=Object(H.a)(O),Ee=ne.props;if(Ee.selectable){var fe=O.store.getState().selectedKeys.concat(),Se=ee.key,Le=fe.indexOf(Se);Le!==-1&&fe.splice(Le,1),"selectedKeys"in Ee||O.store.setState({selectedKeys:fe}),Ee.onDeselect(Object(ae.a)(Object(ae.a)({},ee),{},{selectedKeys:fe}))}},O.onMouseEnter=function(ee){O.restoreModeVerticalFromInline();var ne=O.props.onMouseEnter;ne&&ne(ee)},O.onTransitionEnd=function(ee){var ne=ee.propertyName==="width"&&ee.target===ee.currentTarget,Ee=ee.target.className,fe=Object.prototype.toString.call(Ee)==="[object SVGAnimatedString]"?Ee.animVal:Ee,Se=ee.propertyName==="font-size"&&fe.indexOf("anticon")>=0;(ne||Se)&&O.restoreModeVerticalFromInline()},O.setInnerMenu=function(ee){O.innerMenu=ee},O.isRootMenu=!0;var B=X.defaultSelectedKeys,x=X.defaultOpenKeys;return"selectedKeys"in X&&(B=X.selectedKeys||[]),"openKeys"in X&&(x=X.openKeys||[]),O.store=Object(ge.c)({selectedKeys:B,openKeys:x,activeKey:{"0-menu-":Xi(X,X.activeKey)}}),O.state={switchingModeFromInline:!1,prevProps:X,inlineOpenKeys:[],store:O.store},O}return Object(te.a)(ve,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(O){var B=this.props,x=B.siderCollapsed,ee=B.inlineCollapsed,ne=B.onOpenChange;(!O.inlineCollapsed&&ee||!O.siderCollapsed&&x)&&ne([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var O=this.props.collapsedWidth,B=this.store,x=this.prevOpenKeys,ee=this.getInlineCollapsed()&&(O===0||O==="0"||O==="0px");ee?(this.prevOpenKeys=B.getState().openKeys.concat(),this.store.setState({openKeys:[]})):x&&(this.store.setState({openKeys:x}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var O=this.props.mode,B=this.state.switchingModeFromInline,x=this.getInlineCollapsed();return B&&x?"inline":x?"vertical":O}},{key:"getInlineCollapsed",value:function(){var O=this.props,B=O.inlineCollapsed,x=O.siderCollapsed;return x!==void 0?x:B}},{key:"restoreModeVerticalFromInline",value:function(){var O=this.state.switchingModeFromInline;O&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var O=Object(ae.a)({},Object(z.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),B=this.getRealMenuMode();return O.className+=" ".concat(O.prefixCls,"-root"),O.direction==="rtl"&&(O.className+=" ".concat(O.prefixCls,"-rtl")),O=Object(ae.a)(Object(ae.a)({},O),{},{mode:B,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ya(this.props,this.state,B)}),delete O.openAnimation,delete O.openTransitionName,y.createElement(ge.a,{store:this.store},y.createElement(Jr,Object(J.a)({},O,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(O,B){var x=B.prevProps,ee=B.store,ne=ee.getState(),Ee={},fe={prevProps:O};return x.mode==="inline"&&O.mode!=="inline"&&(fe.switchingModeFromInline=!0),"openKeys"in O?Ee.openKeys=O.openKeys||[]:((O.inlineCollapsed&&!x.inlineCollapsed||O.siderCollapsed&&!x.siderCollapsed)&&(fe.switchingModeFromInline=!0,fe.inlineOpenKeys=ne.openKeys,Ee.openKeys=[]),(!O.inlineCollapsed&&x.inlineCollapsed||!O.siderCollapsed&&x.siderCollapsed)&&(Ee.openKeys=B.inlineOpenKeys,fe.inlineOpenKeys=[])),Object.keys(Ee).length&&ee.setState(Ee),fe}}]),ve}(y.Component);ua.defaultProps={selectable:!0,onClick:pe,onSelect:pe,onOpenChange:pe,onDeselect:pe,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:y.createElement("span",null,"\xB7\xB7\xB7")};var Va=ua,br=function(V){Object(le.a)(ve,V);var de=Object(ye.a)(ve);function ve(){var X;return Object(P.a)(this,ve),X=de.apply(this,arguments),X.onKeyDown=function(O){var B=O.keyCode;return B===p.a.ENTER?(X.onClick(O),!0):void 0},X.onMouseLeave=function(O){var B=X.props,x=B.eventKey,ee=B.onItemHover,ne=B.onMouseLeave;ee({key:x,hover:!1}),ne({key:x,domEvent:O})},X.onMouseEnter=function(O){var B=X.props,x=B.eventKey,ee=B.onItemHover,ne=B.onMouseEnter;ee({key:x,hover:!0}),ne({key:x,domEvent:O})},X.onClick=function(O){var B=X.props,x=B.eventKey,ee=B.multiple,ne=B.onClick,Ee=B.onSelect,fe=B.onDeselect,Se=B.isSelected,Le={key:x,keyPath:[x],item:Object(H.a)(X),domEvent:O};ne(Le),ee?Se?fe(Le):Ee(Le):Se||Ee(Le)},X.saveNode=function(O){X.node=O},X}return Object(te.a)(ve,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var O=this.props;O.onDestroy&&O.onDestroy(O.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var O,B=Object(ae.a)({},this.props),x=ue()(this.getPrefixCls(),B.className,(O={},Object(re.a)(O,this.getActiveClassName(),!B.disabled&&B.active),Object(re.a)(O,this.getSelectedClassName(),B.isSelected),Object(re.a)(O,this.getDisabledClassName(),B.disabled),O)),ee=Object(ae.a)(Object(ae.a)({},B.attribute),{},{title:typeof B.title=="string"?B.title:void 0,className:x,role:B.role||"menuitem","aria-disabled":B.disabled});B.role==="option"?ee=Object(ae.a)(Object(ae.a)({},ee),{},{role:"option","aria-selected":B.isSelected}):(B.role===null||B.role==="none")&&(ee.role="none");var ne={onClick:B.disabled?null:this.onClick,onMouseLeave:B.disabled?null:this.onMouseLeave,onMouseEnter:B.disabled?null:this.onMouseEnter},Ee=Object(ae.a)({},B.style);B.mode==="inline"&&(B.direction==="rtl"?Ee.paddingRight=B.inlineIndent*B.level:Ee.paddingLeft=B.inlineIndent*B.level),U.forEach(function(Se){return delete B[Se]}),delete B.direction;var fe=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(fe=y.createElement(this.props.itemIcon,this.props)),y.createElement("li",Object(J.a)({},Object(z.a)(B,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ee,ne,{style:Ee,ref:this.saveNode}),B.children,fe)}}]),ve}(y.Component);br.isMenuItem=!0,br.defaultProps={onSelect:pe,onMouseEnter:pe,onMouseLeave:pe,manualRef:pe};var ca=Object(ge.b)(function(V,de){var ve=V.activeKey,X=V.selectedKeys,O=de.eventKey,B=de.subMenuKey;return{active:ve[B]===O,isSelected:Array.isArray(X)?X.indexOf(O)!==-1:X===O}})(br),Ea=ca,Xr=function(V){Object(le.a)(ve,V);var de=Object(ye.a)(ve);function ve(){var X;return Object(P.a)(this,ve),X=de.apply(this,arguments),X.renderInnerMenuItem=function(O){var B=X.props,x=B.renderMenuItem,ee=B.index;return x(O,ee,X.props.subMenuKey)},X}return Object(te.a)(ve,[{key:"render",value:function(){var O=Object(J.a)({},this.props),B=O.className,x=B===void 0?"":B,ee=O.rootPrefixCls,ne="".concat(ee,"-item-group-title"),Ee="".concat(ee,"-item-group-list"),fe=O.title,Se=O.children;return U.forEach(function(Le){return delete O[Le]}),delete O.direction,y.createElement("li",Object(J.a)({},O,{onClick:function(Ke){return Ke.stopPropagation()},className:"".concat(x," ").concat(ee,"-item-group")}),y.createElement("div",{className:ne,title:typeof fe=="string"?fe:void 0},fe),y.createElement("ul",{className:Ee},y.Children.map(Se,this.renderInnerMenuItem)))}}]),ve}(y.Component);Xr.isMenuItemGroup=!0,Xr.defaultProps={disabled:!0};var qi=Xr,Aa=function(de){var ve=de.className,X=de.rootPrefixCls,O=de.style;return y.createElement("li",{className:"".concat(ve," ").concat(X,"-item-divider"),style:O})};Aa.defaultProps={disabled:!0,className:"",style:{}};var Oo=Aa,Oa=Va,Ja=s("eDIo");function wa(V,de){var ve=V.prefixCls,X=V.editable,O=V.locale,B=V.style;return!X||X.showAdd===!1?null:y.createElement("button",{ref:de,type:"button",className:"".concat(ve,"-nav-add"),style:B,"aria-label":(O==null?void 0:O.addAriaLabel)||"Add tab",onClick:function(ee){X.onEdit("add",{event:ee})}},X.addIcon||"+")}var xr=y.forwardRef(wa);function Br(V,de){var ve=V.prefixCls,X=V.id,O=V.tabs,B=V.locale,x=V.mobile,ee=V.moreIcon,ne=ee===void 0?"More":ee,Ee=V.moreTransitionName,fe=V.style,Se=V.className,Le=V.editable,Ke=V.tabBarGutter,He=V.rtl,tt=V.onTabClick,Tt=Object(y.useState)(!1),Yt=Object(ie.a)(Tt,2),Ft=Yt[0],zt=Yt[1],Vt=Object(y.useState)(null),Qt=Object(ie.a)(Vt,2),Gt=Qt[0],on=Qt[1],qt="".concat(X,"-more-popup"),Yn="".concat(ve,"-dropdown"),$t=Gt!==null?"".concat(qt,"-").concat(Gt):null,Et=B==null?void 0:B.dropdownAriaLabel,gt=y.createElement(Oa,{onClick:function(Dn){var Sn=Dn.key,ri=Dn.domEvent;tt(Sn,ri),zt(!1)},id:qt,tabIndex:-1,role:"listbox","aria-activedescendant":$t,selectedKeys:[Gt],"aria-label":Et!==void 0?Et:"expanded dropdown"},O.map(function(gn){return y.createElement(Ea,{key:gn.key,id:"".concat(qt,"-").concat(gn.key),role:"option","aria-controls":X&&"".concat(X,"-panel-").concat(gn.key),disabled:gn.disabled},gn.tab)}));function nn(gn){for(var Dn=O.filter(function(ji){return!ji.disabled}),Sn=Dn.findIndex(function(ji){return ji.key===Gt})||0,ri=Dn.length,_i=0;_i<ri;_i+=1){Sn=(Sn+gn+ri)%ri;var qn=Dn[Sn];if(!qn.disabled){on(qn.key);return}}}function sn(gn){var Dn=gn.which;if(!Ft){[p.a.DOWN,p.a.SPACE,p.a.ENTER].includes(Dn)&&(zt(!0),gn.preventDefault());return}switch(Dn){case p.a.UP:nn(-1),gn.preventDefault();break;case p.a.DOWN:nn(1),gn.preventDefault();break;case p.a.ESC:zt(!1);break;case p.a.SPACE:case p.a.ENTER:Gt!==null&&tt(Gt,gn);break}}Object(y.useEffect)(function(){var gn=document.getElementById($t);gn&&gn.scrollIntoView&&gn.scrollIntoView(!1)},[Gt]),Object(y.useEffect)(function(){Ft||on(null)},[Ft]);var ft=Object(re.a)({},He?"marginLeft":"marginRight",Ke);O.length||(ft.visibility="hidden",ft.order=1);var dn=ue()(Object(re.a)({},"".concat(Yn,"-rtl"),He)),Vn=x?null:y.createElement(Ja.a,{prefixCls:Yn,overlay:gt,trigger:["hover"],visible:Ft,transitionName:Ee,onVisibleChange:zt,overlayClassName:dn,mouseEnterDelay:.1,mouseLeaveDelay:.1},y.createElement("button",{type:"button",className:"".concat(ve,"-nav-more"),style:ft,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":qt,id:"".concat(X,"-more"),"aria-expanded":Ft,onKeyDown:sn},ne));return y.createElement("div",{className:ue()("".concat(ve,"-nav-operations"),Se),style:fe,ref:de},Vn,y.createElement(xr,{prefixCls:ve,locale:B,editable:Le}))}var Ta=y.forwardRef(Br),da=Object(y.createContext)(null),Xa=.1,wt=.01,Be=20,ct=Math.pow(.995,Be);function Je(){var V=navigator.userAgent||navigator.vendor||window.opera;return!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(V)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(V.substr(0,4)))}function _t(V,de){var ve=Object(y.useState)(),X=Object(ie.a)(ve,2),O=X[0],B=X[1],x=Object(y.useState)(0),ee=Object(ie.a)(x,2),ne=ee[0],Ee=ee[1],fe=Object(y.useState)(0),Se=Object(ie.a)(fe,2),Le=Se[0],Ke=Se[1],He=Object(y.useState)(),tt=Object(ie.a)(He,2),Tt=tt[0],Yt=tt[1],Ft=Object(y.useRef)();function zt(Et){var gt=Et.touches[0],nn=gt.screenX,sn=gt.screenY;B({x:nn,y:sn}),window.clearInterval(Ft.current)}function Vt(Et){if(!O)return;Et.preventDefault();var gt=Et.touches[0],nn=gt.screenX,sn=gt.screenY;B({x:nn,y:sn});var ft=nn-O.x,dn=sn-O.y;de(ft,dn);var Vn=Date.now();Ee(Vn),Ke(Vn-ne),Yt({x:ft,y:dn})}function Qt(){if(!O)return;if(B(null),Yt(null),Tt){var Et=Tt.x/Le,gt=Tt.y/Le,nn=Math.abs(Et),sn=Math.abs(gt);if(Math.max(nn,sn)<Xa)return;var ft=Et,dn=gt;Ft.current=window.setInterval(function(){if(Math.abs(ft)<wt&&Math.abs(dn)<wt){window.clearInterval(Ft.current);return}ft*=ct,dn*=ct,de(ft*Be,dn*Be)},Be)}}var Gt=Object(y.useRef)(0),on=Object(y.useRef)(!1),qt=Object(y.useRef)();function Yn(Et){var gt=Et.deltaX,nn=Et.deltaY,sn=0,ft=Math.abs(gt),dn=Math.abs(nn);ft===dn?sn=qt.current==="x"?gt:nn:ft>dn?(sn=gt,qt.current="x"):(sn=nn,qt.current="y");var Vn=Date.now();Vn-Gt.current>100&&(on.current=!1),(de(-sn,-sn)||on.current)&&(Et.preventDefault(),on.current=!0),Gt.current=Vn}var $t=Object(y.useRef)(null);$t.current={onTouchStart:zt,onTouchMove:Vt,onTouchEnd:Qt,onWheel:Yn},y.useEffect(function(){function Et(ft){$t.current.onTouchStart(ft)}function gt(ft){$t.current.onTouchMove(ft)}function nn(ft){$t.current.onTouchEnd(ft)}function sn(ft){$t.current.onWheel(ft)}return document.addEventListener("touchmove",gt,{passive:!1}),document.addEventListener("touchend",nn,{passive:!1}),V.current.addEventListener("touchstart",Et,{passive:!1}),V.current.addEventListener("wheel",sn),function(){document.removeEventListener("touchmove",gt),document.removeEventListener("touchend",nn)}},[])}function jt(){var V=Object(y.useRef)(new Map);function de(X){return V.current.has(X)||V.current.set(X,y.createRef()),V.current.get(X)}function ve(X){V.current.delete(X)}return[de,ve]}function mn(V,de){var ve=y.useRef(V),X=y.useState({}),O=Object(ie.a)(X,2),B=O[1];function x(ee){var ne=typeof ee=="function"?ee(ve.current):ee;ne!==ve.current&&de(ne,ve.current),ve.current=ne,B({})}return[ve.current,x]}var bn=function(de){var ve=de.position,X=de.prefixCls,O=de.extra;if(!O)return null;var B,x=O;return ve==="right"&&(B=x.right||!x.left&&x||null),ve==="left"&&(B=x.left||null),B?y.createElement("div",{className:"".concat(X,"-extra-content")},B):null};function zn(V,de){var ve,X=y.useContext(da),O=X.prefixCls,B=X.tabs,x=V.className,ee=V.style,ne=V.id,Ee=V.animated,fe=V.activeKey,Se=V.rtl,Le=V.extra,Ke=V.editable,He=V.locale,tt=V.tabPosition,Tt=V.tabBarGutter,Yt=V.children,Ft=V.onTabClick,zt=V.onTabScroll,Vt=Object(y.useRef)(),Qt=Object(y.useRef)(),Gt=Object(y.useRef)(),on=Object(y.useRef)(),qt=jt(),Yn=Object(ie.a)(qt,2),$t=Yn[0],Et=Yn[1],gt=tt==="top"||tt==="bottom",nn=mn(0,function(An,an){gt&&zt&&zt({direction:An>an?"left":"right"})}),sn=Object(ie.a)(nn,2),ft=sn[0],dn=sn[1],Vn=mn(0,function(An,an){!gt&&zt&&zt({direction:An>an?"top":"bottom"})}),gn=Object(ie.a)(Vn,2),Dn=gn[0],Sn=gn[1],ri=Object(y.useState)(0),_i=Object(ie.a)(ri,2),qn=_i[0],ji=_i[1],cr=Object(y.useState)(0),Hi=Object(ie.a)(cr,2),yi=Hi[0],Bn=Hi[1],Mn=Object(y.useState)(0),$n=Object(ie.a)(Mn,2),Jn=$n[0],dr=$n[1],Rr=Object(y.useState)(0),Ir=Object(ie.a)(Rr,2),Cn=Ir[0],_r=Ir[1],Nr=Object(y.useState)(null),jn=Object(ie.a)(Nr,2),Tn=jn[0],Ei=jn[1],To=Object(y.useState)(null),qa=Object(ie.a)(To,2),Dr=qa[0],Zr=qa[1],Ca=Object(y.useState)(0),$a=Object(ie.a)(Ca,2),xa=$a[0],Yo=$a[1],Vo=Object(y.useState)(0),So=Object(ie.a)(Vo,2),eo=So[0],to=So[1],qr=h(new Map),$r=Object(ie.a)(qr,2),Jo=$r[0],Ra=$r[1],ha=g(B,Jo,qn),ea="".concat(O,"-nav-operations-hidden"),ta=0,hr=0;gt?Se?(ta=0,hr=Math.max(0,qn-Tn)):(ta=Math.min(0,Tn-qn),hr=0):(ta=Math.min(0,Dr-yi),hr=0);function Wr(An){return An<ta?[ta,!1]:An>hr?[hr,!1]:[An,!0]}var Mr=Object(y.useRef)(),fa=Object(y.useState)(),Hr=Object(ie.a)(fa,2),Ia=Hr[0],no=Hr[1];function Na(){no(Date.now())}function io(){window.clearTimeout(Mr.current)}_t(Vt,function(An,an){var Ai=!1;function zi(na,Ar){na(function(ga){var kr=Wr(ga+Ar),Oi=Object(ie.a)(kr,2),La=Oi[0],ao=Oi[1];return Ai=ao,La})}if(gt){if(Tn>=qn)return Ai;zi(dn,An)}else{if(Dr>=yi)return Ai;zi(Sn,an)}return io(),Na(),Ai}),Object(y.useEffect)(function(){return io(),Ia&&(Mr.current=window.setTimeout(function(){no(0)},100)),io},[Ia]);function Lr(){var An=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fe,an=ha.get(An);if(!an)return;if(gt){var Ai=ft;Se?an.right<ft?Ai=an.right:an.right+an.width>ft+Tn&&(Ai=an.right+an.width-Tn):an.left<-ft?Ai=-an.left:an.left+an.width>-ft+Tn&&(Ai=-(an.left+an.width-Tn)),Sn(0),dn(Wr(Ai)[0])}else{var zi=Dn;an.top<-Dn?zi=-an.top:an.top+an.height>-Dn+Dr&&(zi=-(an.top+an.height-Dr)),dn(0),Sn(Wr(zi)[0])}}var Kr=Q(ha,{width:Tn,height:Dr,left:ft,top:Dn},{width:Jn,height:Cn},{width:xa,height:eo},Object(ae.a)(Object(ae.a)({},V),{},{tabs:B})),Co=Object(ie.a)(Kr,2),Xo=Co[0],Zo=Co[1],qo=B.map(function(An){var an=An.key;return y.createElement(W,{id:ne,prefixCls:O,key:an,rtl:Se,tab:An,closable:An.closable,editable:Ke,active:an===fe,tabPosition:tt,tabBarGutter:Tt,renderWrapper:Yt,removeAriaLabel:He==null?void 0:He.removeAriaLabel,ref:$t(an),onClick:function(zi){Ft(an,zi)},onRemove:function(){Et(an)},onFocus:function(){Lr(an),Na(),Se||(Vt.current.scrollLeft=0),Vt.current.scrollTop=0}})}),ro=d(function(){var An,an,Ai,zi,na,Ar,ga,kr,Oi,La=((An=Vt.current)===null||An===void 0?void 0:An.offsetWidth)||0,ao=((an=Vt.current)===null||an===void 0?void 0:an.offsetHeight)||0,oo=((Ai=on.current)===null||Ai===void 0?void 0:Ai.offsetWidth)||0,Gi=((zi=on.current)===null||zi===void 0?void 0:zi.offsetHeight)||0,_n=((na=Gt.current)===null||na===void 0?void 0:na.offsetWidth)||0,pr=((Ar=Gt.current)===null||Ar===void 0?void 0:Ar.offsetHeight)||0;Ei(La),Zr(ao),Yo(oo),to(Gi);var Or=(((ga=Qt.current)===null||ga===void 0?void 0:ga.offsetWidth)||0)-oo,wr=(((kr=Qt.current)===null||kr===void 0?void 0:kr.offsetHeight)||0)-Gi;ji(Or),Bn(wr);var so=(Oi=Gt.current)===null||Oi===void 0?void 0:Oi.className.includes(ea);dr(Or-(so?0:_n)),_r(wr-(so?0:pr)),Ra(function(){var ka=new Map;return B.forEach(function(Do){var Mo=Do.key,Gr=$t(Mo).current;Gr&&ka.set(Mo,{width:Gr.offsetWidth,height:Gr.offsetHeight,left:Gr.offsetLeft,top:Gr.offsetTop})}),ka})}),$o=B.slice(0,Xo),Ki=B.slice(Zo+1),ui=[].concat(Object(N.a)($o),Object(N.a)(Ki)),Li=Object(y.useState)(),ci=Object(ie.a)(Li,2),pa=ci[0],es=ci[1],fr=ha.get(fe),xo=Object(y.useRef)();function Ro(){E.a.cancel(xo.current)}Object(y.useEffect)(function(){var An={};return fr&&(gt?(Se?An.right=fr.right:An.left=fr.left,An.width=fr.width):(An.top=fr.top,An.height=fr.height)),Ro(),xo.current=E()(function(){es(An)}),Ro},[fr,gt,Se]),Object(y.useEffect)(function(){Lr()},[fe,fr,ha,gt]),Object(y.useEffect)(function(){ro()},[Se,Tt,fe,B.map(function(An){return An.key}).join("_")]);var Io=!!ui.length,zr="".concat(O,"-nav-wrap"),Da,ma,No,Ma;return gt?Se?(ma=ft>0,Da=ft+Tn<qn):(Da=ft<0,ma=-ft+Tn<qn):(No=Dn<0,Ma=-Dn+Dr<yi),y.createElement("div",{ref:de,role:"tablist",className:ue()("".concat(O,"-nav"),x),style:ee,onKeyDown:function(){Na()}},y.createElement(bn,{position:"left",extra:Le,prefixCls:O}),y.createElement(f.a,{onResize:ro},y.createElement("div",{className:ue()(zr,(ve={},Object(re.a)(ve,"".concat(zr,"-ping-left"),Da),Object(re.a)(ve,"".concat(zr,"-ping-right"),ma),Object(re.a)(ve,"".concat(zr,"-ping-top"),No),Object(re.a)(ve,"".concat(zr,"-ping-bottom"),Ma),ve)),ref:Vt},y.createElement(f.a,{onResize:ro},y.createElement("div",{ref:Qt,className:"".concat(O,"-nav-list"),style:{transform:"translate(".concat(ft,"px, ").concat(Dn,"px)"),transition:Ia?"none":void 0}},qo,y.createElement(xr,{ref:on,prefixCls:O,locale:He,editable:Ke,style:{visibility:Io?"hidden":null}}),y.createElement("div",{className:ue()("".concat(O,"-ink-bar"),Object(re.a)({},"".concat(O,"-ink-bar-animated"),Ee.inkBar)),style:pa}))))),y.createElement(Ta,Object.assign({},V,{ref:Gt,prefixCls:O,tabs:ui,className:!Io&&ea})),y.createElement(bn,{position:"right",extra:Le,prefixCls:O}))}var Nn=y.forwardRef(zn);function ii(V){var de=V.id,ve=V.activeKey,X=V.animated,O=V.tabPosition,B=V.rtl,x=V.destroyInactiveTabPane,ee=y.useContext(da),ne=ee.prefixCls,Ee=ee.tabs,fe=X.tabPane,Se=Ee.findIndex(function(Le){return Le.key===ve});return y.createElement("div",{className:ue()("".concat(ne,"-content-holder"))},y.createElement("div",{className:ue()("".concat(ne,"-content"),"".concat(ne,"-content-").concat(O),Object(re.a)({},"".concat(ne,"-content-animated"),fe)),style:Se&&fe?Object(re.a)({},B?"marginRight":"marginLeft","-".concat(Se,"00%")):null},Ee.map(function(Le){return y.cloneElement(Le.node,{key:Le.key,prefixCls:ne,tabKey:Le.key,id:de,animated:fe,active:Le.key===ve,destroyInactiveTabPane:x})})))}function ar(V){var de=V.prefixCls,ve=V.forceRender,X=V.className,O=V.style,B=V.id,x=V.active,ee=V.animated,ne=V.destroyInactiveTabPane,Ee=V.tabKey,fe=V.children,Se=y.useState(ve),Le=Object(ie.a)(Se,2),Ke=Le[0],He=Le[1];y.useEffect(function(){x?He(!0):ne&&He(!1)},[x,ne]);var tt={};return x||(ee?(tt.visibility="hidden",tt.height=0,tt.overflowY="hidden"):tt.display="none"),y.createElement("div",{id:B&&"".concat(B,"-panel-").concat(Ee),role:"tabpanel",tabIndex:x?0:-1,"aria-labelledby":B&&"".concat(B,"-tab-").concat(Ee),"aria-hidden":!x,style:Object(ae.a)(Object(ae.a)({},tt),O),className:ue()("".concat(de,"-tabpane"),x&&"".concat(de,"-tabpane-active"),X)},(x||Ke||ve)&&fe)}var Ri=0;function Sa(V){return Object(se.a)(V).map(function(de){if(y.isValidElement(de)){var ve=de.key!==void 0?String(de.key):void 0;return Object(ae.a)(Object(ae.a)({key:ve},de.props),{},{node:de})}return null}).filter(function(de){return de})}function wo(V,de){var ve,X=V.id,O=V.prefixCls,B=O===void 0?"rc-tabs":O,x=V.className,ee=V.children,ne=V.direction,Ee=V.activeKey,fe=V.defaultActiveKey,Se=V.editable,Le=V.animated,Ke=V.tabPosition,He=Ke===void 0?"top":Ke,tt=V.tabBarGutter,Tt=V.tabBarStyle,Yt=V.tabBarExtraContent,Ft=V.locale,zt=V.moreIcon,Vt=V.moreTransitionName,Qt=V.destroyInactiveTabPane,Gt=V.renderTabBar,on=V.onChange,qt=V.onTabClick,Yn=V.onTabScroll,$t=Object(Ie.a)(V,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),Et=Sa(ee),gt=ne==="rtl",nn;Le===!1?nn={inkBar:!1,tabPane:!1}:nn=Object(ae.a)({inkBar:!0,tabPane:!1},Le!==!0?Le:null);var sn=Object(y.useState)(!1),ft=Object(ie.a)(sn,2),dn=ft[0],Vn=ft[1];Object(y.useEffect)(function(){Vn(Je())},[]);var gn=Object(a.a)(function(){var Cn;return(Cn=Et[0])===null||Cn===void 0?void 0:Cn.key},{value:Ee,defaultValue:fe}),Dn=Object(ie.a)(gn,2),Sn=Dn[0],ri=Dn[1],_i=Object(y.useState)(function(){return Et.findIndex(function(Cn){return Cn.key===Sn})}),qn=Object(ie.a)(_i,2),ji=qn[0],cr=qn[1];Object(y.useEffect)(function(){var Cn=Et.findIndex(function(Nr){return Nr.key===Sn});if(Cn===-1){var _r;Cn=Math.max(0,Math.min(ji,Et.length-1)),ri((_r=Et[Cn])===null||_r===void 0?void 0:_r.key)}cr(Cn)},[Et.map(function(Cn){return Cn.key}).join("_"),Sn,ji]);var Hi=Object(a.a)(null,{value:X}),yi=Object(ie.a)(Hi,2),Bn=yi[0],Mn=yi[1],$n=He;dn&&!["left","right"].includes(He)&&($n="top"),Object(y.useEffect)(function(){X||(Mn("rc-tabs-".concat(Ri)),Ri+=1)},[]);function Jn(Cn,_r){qt==null||qt(Cn,_r),ri(Cn),on==null||on(Cn)}var dr={id:Bn,activeKey:Sn,animated:nn,tabPosition:$n,rtl:gt,mobile:dn},Rr,Ir=Object(ae.a)(Object(ae.a)({},dr),{},{editable:Se,locale:Ft,moreIcon:zt,moreTransitionName:Vt,tabBarGutter:tt,onTabClick:Jn,onTabScroll:Yn,extra:Yt,style:Tt,panes:ee});return Gt?Rr=Gt(Ir,Nn):Rr=y.createElement(Nn,Object.assign({},Ir)),y.createElement(da.Provider,{value:{tabs:Et,prefixCls:B}},y.createElement("div",Object.assign({ref:de,id:X,className:ue()(B,"".concat(B,"-").concat($n),(ve={},Object(re.a)(ve,"".concat(B,"-mobile"),dn),Object(re.a)(ve,"".concat(B,"-editable"),Se),Object(re.a)(ve,"".concat(B,"-rtl"),gt),ve),x)},$t),Rr,y.createElement(ii,Object.assign({destroyInactiveTabPane:Qt},dr,{animated:nn}))))}var mi=y.forwardRef(wo);mi.TabPane=ar;var Er=mi,Za=L.b=Er},kPWJ:function(De,L,s){De.exports=s.p+"static/question.cb52bef9.gif"},kPYp:function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6VgFeblR0H5lEL0oGyjKvU1yH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0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},l2Kq:function(De,L,s){De.exports=s.p+"static/match_ad.24dc22fd.jpg"},lzim:function(De,L,s){"use strict";var re=s("E7E6"),ie=s.n(re);s.d(L,"w",function(){return ie.a});var Ie=s("/GNS"),ae=s.n(Ie);s.d(L,"v",function(){return ae.a});var y=s("FOrL"),R=s.n(y);s.d(L,"q",function(){return R.a});var ue=s("HpTS"),se=s.n(ue);s.d(L,"x",function(){return se.a});var a=s("tWlo"),N=s.n(a);s.d(L,"a",function(){return N.a});var I=s("7ZXX"),E=s.n(I);s.d(L,"l",function(){return E.a});var f=s("GABl"),d=s.n(f);s.d(L,"e",function(){return d.a});var h=s("onxn"),p=s.n(h);s.d(L,"n",function(){return p.a});var T=s("nKGa"),W=s.n(T);s.d(L,"m",function(){return W.a});var _=s("4qgm"),g=s.n(_);s.d(L,"z",function(){return g.a});var j=s("JeFH"),Q=s.n(j);s.d(L,"b",function(){return Q.a});var J=s("ji0R"),P=s.n(J);s.d(L,"i",function(){return P.a});var te=s("W6BS"),H=s.n(te);s.d(L,"A",function(){return H.a});var le=s("kPYp"),ye=s.n(le);s.d(L,"B",function(){return ye.a});var ge=s("nukY"),z=s.n(ge),F=s("4u4S"),K=s.n(F),xe=s("yslc"),M=s.n(xe),u=s("l2Kq"),v=s.n(u),A=s("RMFE"),l=s.n(A);s.d(L,"o",function(){return l.a});var C=s("TGq3"),D=s.n(C),he=s("SMhR"),_e=s.n(he);s.d(L,"y",function(){return _e.a});var Ae=s("8/bI"),be=s.n(Ae);s.d(L,"j",function(){return be.a});var G=s("JWDV"),$=s.n(G),me=s("Xsq0"),q=s.n(me);s.d(L,"p",function(){return q.a});var Oe=s("Ohmc"),S=s.n(Oe);s.d(L,"c",function(){return S.a});var Y=s("csWT"),k=s.n(Y);s.d(L,"d",function(){return k.a});var pe=s("7v3h"),Me=s.n(pe);s.d(L,"k",function(){return Me.a});var ce=s("cRFk"),Ce=s.n(ce);s.d(L,"u",function(){return Ce.a});var Fe=s("kPWJ"),U=s.n(Fe);s.d(L,"t",function(){return U.a});var we=s("qgvg"),Ne=s.n(we);s.d(L,"r",function(){return Ne.a});var ke=s("FPkq"),$e=s.n(ke);s.d(L,"s",function(){return $e.a});var Xe=s("A/g1"),st=s.n(Xe);s.d(L,"f",function(){return st.a});var Ze=s("Nmxd"),yt=s.n(Ze);s.d(L,"g",function(){return yt.a});var At=s("5D2P"),Lt=s.n(At);s.d(L,"h",function(){return Lt.a});var qe=s("djh8"),Xn=s.n(qe),xn=s("Jq4h"),Bt=s.n(xn)},nEHx:function(De,L,s){"use strict";s.d(L,"a",function(){return re});var re;(function(ie){ie.DARK="dark",ie.LIGHT="light",ie.HIGH_CONTRAST="hc"})(re||(re={}))},nKGa:function(De,L,s){De.exports=s.p+"static/export_exercise-template.f7655c19.png"},nnTU:function(De,L,s){"use strict";s.d(L,"b",function(){return ue}),s.d(L,"a",function(){return se});var re=s("MI8n"),ie=s("JYp7"),Ie=s("pmY6"),ae=s("24hK"),y=s("746U"),R=s("Cg/j");const ue=Object(R.c)("commandService"),se=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new re.b,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(a,N){if(!a)throw new Error("invalid command");if(typeof a=="string"){if(!N)throw new Error("invalid command");return this.registerCommand({id:a,handler:N})}if(a.description){const h=[];for(let T of a.description.args)h.push(T.constraint);const p=a.handler;a.handler=function(T,...W){return Object(y.o)(W,h),p(T,...W)}}const{id:I}=a;let E=this._commands.get(I);E||(E=new ae.a,this._commands.set(I,E));let f=E.unshift(a),d=Object(Ie.i)(()=>{f();const h=this._commands.get(I);(h==null?void 0:h.isEmpty())&&this._commands.delete(I)});return this._onDidRegisterCommand.fire(I),d}registerCommandAlias(a,N){return se.registerCommand(a,(I,...E)=>I.get(ue).executeCommand(N,...E))}getCommand(a){const N=this._commands.get(a);return!N||N.isEmpty()?void 0:ie.a.first(N)}getCommands(){const a=new Map;for(const N of this._commands.keys()){const I=this.getCommand(N);I&&a.set(N,I)}return a}};se.registerCommand("noop",()=>{})},nukY:function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X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AAElFTkSuQmCC"},p5ED:function(De,L,s){"use strict";var re=s("+L6B"),ie=s("2/Rp"),Ie=s("5Dmo"),ae=s("3S7+"),y=s("k1fw"),R=s("tJVT"),ue=s("q1tI"),se=s.n(ue),a=s("vHTk"),N=s.n(a),I=s("yEEn"),E=s("ZW9T"),f=s("1vsH");L.a=function(d){var h=d.name,p=d.data,T=d.theme,W=d.type,_=d.filename,g=d.monacoEditor,j=d.className,Q=d.style,J=d.close,P=d.onClose,te=d.hasMask,H=Object(ue.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),le=Object(R.a)(H,2),ye=le[0],ge=le[1],z=Object(ue.useState)(""),F=Object(R.a)(z,2),K=F[0],xe=F[1],M,u=1024*1024,v=10*u,A=Object(ue.useRef)();W==="office"&&(M=Object(f.T)(p).filesize,M>v&&(W="other")),_&&(g.filename=_),Object(ue.useEffect)(function(){var D,he,_e=(D=document.cookie)===null||D===void 0||((he=D.replace(/\s/g,""))===null||he===void 0)?void 0:he.split(";");_e==null||_e.map(function(Ae){var be=Ae.split("=");be[0]==="_educoder_session"&&xe(be[1])})},[]);var l=function(){if(p.startsWith("http")||p.startsWith("/")){C();return}Object(f.z)(_||"educoder",p,_)},C=function(){Object(f.x)(_||h,p)};return console.log("data:",p,"fileanme:",_," name:",h),se.a.createElement("div",{style:Object(y.a)({},Q||{}),className:"".concat(te&&N.a.bgBlack," ").concat(W?N.a.wrp:"hide")},J&&se.a.createElement("div",{className:N.a.close,ref:A},se.a.createElement(ae.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return A.current}},se.a.createElement("span",{onClick:C},se.a.createElement("i",{className:"icon-quxiaozhiding"}))),se.a.createElement(ae.a,{title:"\u5173\u95ED",getPopupContainer:function(){return A.current}},se.a.createElement("span",{className:"",onClick:P},se.a.createElement("i",{className:"icon-guanbi1"})))),se.a.createElement("div",{className:"".concat(N.a[j]," ").concat(j," ").concat(N.a.monaco," ").concat(W==="txt"?"show":"hide")},W==="txt"&&se.a.createElement(E.b,g)),W==="audio"&&se.a.createElement("audio",{src:"".concat(p!=null&&p.startsWith("/")||(p==null?void 0:p.indexOf("https://"))>-1?p:"data:audio/mp3;base64,").concat(p),autoPlay:!0}),W==="video"&&se.a.createElement(se.a.Fragment,null,p!=null&&p.startsWith("/")?se.a.createElement("video",{controls:!0,src:"".concat(p),autoPlay:!0}):se.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(p),autoPlay:!0})),W==="html"&&se.a.createElement("iframe",{src:p+"&disposition=inline"}),W==="pdf"&&se.a.createElement("embed",{className:N.a.embed,src:p}),W==="image"&&se.a.createElement(se.a.Fragment,null,se.a.createElement("img",{src:"".concat(p!=null&&p.startsWith("/")||(p==null?void 0:p.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(p)})),W==="other"&&se.a.createElement("div",null,se.a.createElement(ie.a,{type:"primary",size:"large",onClick:l},se.a.createElement(I.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),(W==="download"||W==="office")&&se.a.createElement(ie.a,{type:"primary",size:"large",onClick:l},se.a.createElement(I.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))}},"p77/":function(De,L,s){},pmY6:function(De,L,s){"use strict";s.d(L,"h",function(){return N}),s.d(L,"g",function(){return E}),s.d(L,"f",function(){return f}),s.d(L,"e",function(){return d}),s.d(L,"i",function(){return h}),s.d(L,"b",function(){return p}),s.d(L,"a",function(){return T}),s.d(L,"d",function(){return W}),s.d(L,"c",function(){return _});var re=s("C/vA"),ie=s("JYp7");const Ie=!1;let ae=null;function y(g){ae=g}if(Ie){const g="__is_disposable_tracked__";y(new class{trackDisposable(j){const Q=new Error("Potentially leaked disposable").stack;setTimeout(()=>{j[g]||console.log(Q)},3e3)}setParent(j,Q){if(j&&j!==T.None)try{j[g]=!0}catch(J){}}markAsDisposed(j){if(j&&j!==T.None)try{j[g]=!0}catch(Q){}}markAsSingleton(j){}})}function R(g){return ae==null||ae.trackDisposable(g),g}function ue(g){ae==null||ae.markAsDisposed(g)}function se(g,j){ae==null||ae.setParent(g,j)}function a(g,j){if(!ae)return;for(const Q of g)ae.setParent(Q,j)}function N(g){return ae==null||ae.markAsSingleton(g),g}class I extends Error{constructor(g){super(`Encountered errors while disposing of store. Errors: [${g.join(", ")}]`);this.errors=g}}function E(g){return typeof g.dispose=="function"&&g.dispose.length===0}function f(g){if(ie.a.is(g)){let j=[];for(const Q of g)if(Q)try{Q.dispose()}catch(J){j.push(J)}if(j.length===1)throw j[0];if(j.length>1)throw new I(j);return Array.isArray(g)?[]:g}else if(g)return g.dispose(),g}function d(...g){const j=h(()=>f(g));return a(g,j),j}function h(g){const j=R({dispose:Object(re.a)(()=>{ue(j),g()})});return j}class p{constructor(){this._toDispose=new Set,this._isDisposed=!1,R(this)}dispose(){if(this._isDisposed)return;ue(this),this._isDisposed=!0,this.clear()}clear(){try{f(this._toDispose.values())}finally{this._toDispose.clear()}}add(g){if(!g)return g;if(g===this)throw new Error("Cannot register a disposable on itself!");return se(g,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(g),g}}p.DISABLE_DISPOSED_WARNING=!1;class T{constructor(){this._store=new p,R(this),se(this._store,this)}dispose(){ue(this),this._store.dispose()}_register(g){if(g===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(g)}}T.None=Object.freeze({dispose(){}});class W{constructor(){this._isDisposed=!1,R(this)}get value(){return this._isDisposed?void 0:this._value}set value(g){var j;if(this._isDisposed||g===this._value)return;(j=this._value)===null||j===void 0||j.dispose(),g&&se(g,this),this._value=g}clear(){this.value=void 0}dispose(){var g;this._isDisposed=!0,ue(this),(g=this._value)===null||g===void 0||g.dispose(),this._value=void 0}clearAndLeak(){const g=this._value;return this._value=void 0,g&&se(g,null),g}}class _{constructor(g){this.object=g}dispose(){}}},psGv:function(De,L,s){var re,ie;(function(){var Ie;(function(){"use strict";var ue=[,,function(I){function E(h){this.__parent=h,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}E.prototype.clone_empty=function(){var h=new E(this.__parent);return h.set_indent(this.__indent_count,this.__alignment_count),h},E.prototype.item=function(h){return h<0?this.__items[this.__items.length+h]:this.__items[h]},E.prototype.has_match=function(h){for(var p=this.__items.length-1;p>=0;p--)if(this.__items[p].match(h))return!0;return!1},E.prototype.set_indent=function(h,p){this.is_empty()&&(this.__indent_count=h||0,this.__alignment_count=p||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},E.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},E.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},E.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var h=this.__parent.current_line;return h.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),h.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),h.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,h.__items[0]===" "&&(h.__items.splice(0,1),h.__character_count-=1),!0}return!1},E.prototype.is_empty=function(){return this.__items.length===0},E.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},E.prototype.push=function(h){this.__items.push(h);var p=h.lastIndexOf(`
|
|
`);p!==-1?this.__character_count=h.length-p:this.__character_count+=h.length},E.prototype.pop=function(){var h=null;return this.is_empty()||(h=this.__items.pop(),this.__character_count-=h.length),h},E.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},E.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},E.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},E.prototype.toString=function(){var h="";return this.is_empty()?this.__parent.indent_empty_lines&&(h=this.__parent.get_indent_string(this.__indent_count)):(h=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),h+=this.__items.join("")),h};function f(h,p){this.__cache=[""],this.__indent_size=h.indent_size,this.__indent_string=h.indent_char,h.indent_with_tabs||(this.__indent_string=new Array(h.indent_size+1).join(h.indent_char)),p=p||"",h.indent_level>0&&(p=new Array(h.indent_level+1).join(this.__indent_string)),this.__base_string=p,this.__base_string_length=p.length}f.prototype.get_indent_size=function(h,p){var T=this.__base_string_length;return p=p||0,h<0&&(T=0),T+=h*this.__indent_size,T+=p,T},f.prototype.get_indent_string=function(h,p){var T=this.__base_string;return p=p||0,h<0&&(h=0,T=""),p+=h*this.__indent_size,this.__ensure_cache(p),T+=this.__cache[p],T},f.prototype.__ensure_cache=function(h){for(;h>=this.__cache.length;)this.__add_column()},f.prototype.__add_column=function(){var h=this.__cache.length,p=0,T="";this.__indent_size&&h>=this.__indent_size&&(p=Math.floor(h/this.__indent_size),h-=p*this.__indent_size,T=new Array(p+1).join(this.__indent_string)),h&&(T+=new Array(h+1).join(" ")),this.__cache.push(T)};function d(h,p){this.__indent_cache=new f(h,p),this.raw=!1,this._end_with_newline=h.end_with_newline,this.indent_size=h.indent_size,this.wrap_line_length=h.wrap_line_length,this.indent_empty_lines=h.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new E(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}d.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},d.prototype.get_line_number=function(){return this.__lines.length},d.prototype.get_indent_string=function(h,p){return this.__indent_cache.get_indent_string(h,p)},d.prototype.get_indent_size=function(h,p){return this.__indent_cache.get_indent_size(h,p)},d.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},d.prototype.add_new_line=function(h){return this.is_empty()||!h&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},d.prototype.get_code=function(h){this.trim(!0);var p=this.current_line.pop();p&&(p[p.length-1]===`
|
|
`&&(p=p.replace(/\n+$/g,"")),this.current_line.push(p)),this._end_with_newline&&this.__add_outputline();var T=this.__lines.join(`
|
|
`);return h!==`
|
|
`&&(T=T.replace(/[\n]/g,h)),T},d.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},d.prototype.set_indent=function(h,p){return h=h||0,p=p||0,this.next_line.set_indent(h,p),this.__lines.length>1?(this.current_line.set_indent(h,p),!0):(this.current_line.set_indent(),!1)},d.prototype.add_raw_token=function(h){for(var p=0;p<h.newlines;p++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(h.whitespace_before),this.current_line.push(h.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},d.prototype.add_token=function(h){this.__add_space_before_token(),this.current_line.push(h),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},d.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},d.prototype.remove_indent=function(h){for(var p=this.__lines.length;h<p;)this.__lines[h]._remove_indent(),h++;this.current_line._remove_wrap_indent()},d.prototype.trim=function(h){for(h=h===void 0?!1:h,this.current_line.trim();h&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},d.prototype.just_added_newline=function(){return this.current_line.is_empty()},d.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},d.prototype.ensure_empty_line_above=function(h,p){for(var T=this.__lines.length-2;T>=0;){var W=this.__lines[T];if(W.is_empty())break;if(W.item(0).indexOf(h)!==0&&W.item(-1)!==p){this.__lines.splice(T+1,0,new E(this)),this.previous_line=this.__lines[this.__lines.length-2];break}T--}},I.exports.Output=d},function(I){function E(f,d,h,p){this.type=f,this.text=d,this.comments_before=null,this.newlines=h||0,this.whitespace_before=p||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}I.exports.Token=E},,,function(I){function E(h,p){this.raw_options=f(h,p),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}E.prototype._get_array=function(h,p){var T=this.raw_options[h],W=p||[];return typeof T=="object"?T!==null&&typeof T.concat=="function"&&(W=T.concat()):typeof T=="string"&&(W=T.split(/[^a-zA-Z0-9_\/\-]+/)),W},E.prototype._get_boolean=function(h,p){var T=this.raw_options[h],W=T===void 0?!!p:!!T;return W},E.prototype._get_characters=function(h,p){var T=this.raw_options[h],W=p||"";return typeof T=="string"&&(W=T.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),W},E.prototype._get_number=function(h,p){var T=this.raw_options[h];p=parseInt(p,10),isNaN(p)&&(p=0);var W=parseInt(T,10);return isNaN(W)&&(W=p),W},E.prototype._get_selection=function(h,p,T){var W=this._get_selection_list(h,p,T);if(W.length!==1)throw new Error("Invalid Option Value: The option '"+h+`' can only be one of the following values:
|
|
`+p+`
|
|
You passed in: '`+this.raw_options[h]+"'");return W[0]},E.prototype._get_selection_list=function(h,p,T){if(!p||p.length===0)throw new Error("Selection list cannot be empty.");if(T=T||[p[0]],!this._is_valid_selection(T,p))throw new Error("Invalid Default Value!");var W=this._get_array(h,T);if(!this._is_valid_selection(W,p))throw new Error("Invalid Option Value: The option '"+h+`' can contain only the following values:
|
|
`+p+`
|
|
You passed in: '`+this.raw_options[h]+"'");return W},E.prototype._is_valid_selection=function(h,p){return h.length&&p.length&&!h.some(function(T){return p.indexOf(T)===-1})};function f(h,p){var T={};h=d(h);var W;for(W in h)W!==p&&(T[W]=h[W]);if(p&&h[p])for(W in h[p])T[W]=h[p][W];return T}function d(h){var p={},T;for(T in h){var W=T.replace(/-/g,"_");p[W]=h[T]}return p}I.exports.Options=E,I.exports.normalizeOpts=d,I.exports.mergeOpts=f},,function(I){var E=RegExp.prototype.hasOwnProperty("sticky");function f(d){this.__input=d||"",this.__input_length=this.__input.length,this.__position=0}f.prototype.restart=function(){this.__position=0},f.prototype.back=function(){this.__position>0&&(this.__position-=1)},f.prototype.hasNext=function(){return this.__position<this.__input_length},f.prototype.next=function(){var d=null;return this.hasNext()&&(d=this.__input.charAt(this.__position),this.__position+=1),d},f.prototype.peek=function(d){var h=null;return d=d||0,d+=this.__position,d>=0&&d<this.__input_length&&(h=this.__input.charAt(d)),h},f.prototype.__match=function(d,h){d.lastIndex=h;var p=d.exec(this.__input);return p&&!(E&&d.sticky)&&(p.index!==h&&(p=null)),p},f.prototype.test=function(d,h){return h=h||0,h+=this.__position,h>=0&&h<this.__input_length?!!this.__match(d,h):!1},f.prototype.testChar=function(d,h){var p=this.peek(h);return d.lastIndex=0,p!==null&&d.test(p)},f.prototype.match=function(d){var h=this.__match(d,this.__position);return h?this.__position+=h[0].length:h=null,h},f.prototype.read=function(d,h,p){var T="",W;return d&&(W=this.match(d),W&&(T+=W[0])),h&&(W||!d)&&(T+=this.readUntil(h,p)),T},f.prototype.readUntil=function(d,h){var p="",T=this.__position;d.lastIndex=this.__position;var W=d.exec(this.__input);return W?(T=W.index,h&&(T+=W[0].length)):T=this.__input_length,p=this.__input.substring(this.__position,T),this.__position=T,p},f.prototype.readUntilAfter=function(d){return this.readUntil(d,!0)},f.prototype.get_regexp=function(d,h){var p=null,T="g";return h&&E&&(T="y"),typeof d=="string"&&d!==""?p=new RegExp(d,T):d&&(p=new RegExp(d.source,T)),p},f.prototype.get_literal_regexp=function(d){return RegExp(d.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},f.prototype.peekUntilAfter=function(d){var h=this.__position,p=this.readUntilAfter(d);return this.__position=h,p},f.prototype.lookBack=function(d){var h=this.__position-1;return h>=d.length&&this.__input.substring(h-d.length,h).toLowerCase()===d},I.exports.InputScanner=f},function(I,E,f){var d=f(8).InputScanner,h=f(3).Token,p=f(10).TokenStream,T=f(11).WhitespacePattern,W={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},_=function(g,j){this._input=new d(g),this._options=j||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new T(this._input)};_.prototype.tokenize=function(){this._input.restart(),this.__tokens=new p,this._reset();for(var g,j=new h(W.START,""),Q=null,J=[],P=new p;j.type!==W.EOF;){for(g=this._get_next_token(j,Q);this._is_comment(g);)P.add(g),g=this._get_next_token(j,Q);P.isEmpty()||(g.comments_before=P,P=new p),g.parent=Q,this._is_opening(g)?(J.push(Q),Q=g):Q&&this._is_closing(g,Q)&&(g.opened=Q,Q.closed=g,Q=J.pop(),g.parent=Q),g.previous=j,j.next=g,this.__tokens.add(g),j=g}return this.__tokens},_.prototype._is_first_token=function(){return this.__tokens.isEmpty()},_.prototype._reset=function(){},_.prototype._get_next_token=function(g,j){this._readWhitespace();var Q=this._input.read(/.+/g);return Q?this._create_token(W.RAW,Q):this._create_token(W.EOF,"")},_.prototype._is_comment=function(g){return!1},_.prototype._is_opening=function(g){return!1},_.prototype._is_closing=function(g,j){return!1},_.prototype._create_token=function(g,j){var Q=new h(g,j,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return Q},_.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},I.exports.Tokenizer=_,I.exports.TOKEN=W},function(I){function E(f){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=f}E.prototype.restart=function(){this.__position=0},E.prototype.isEmpty=function(){return this.__tokens_length===0},E.prototype.hasNext=function(){return this.__position<this.__tokens_length},E.prototype.next=function(){var f=null;return this.hasNext()&&(f=this.__tokens[this.__position],this.__position+=1),f},E.prototype.peek=function(f){var d=null;return f=f||0,f+=this.__position,f>=0&&f<this.__tokens_length&&(d=this.__tokens[f]),d},E.prototype.add=function(f){this.__parent_token&&(f.parent=this.__parent_token),this.__tokens.push(f),this.__tokens_length+=1},I.exports.TokenStream=E},function(I,E,f){var d=f(12).Pattern;function h(p,T){d.call(this,p,T),T?this._line_regexp=this._input.get_regexp(T._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}h.prototype=new d,h.prototype.__set_whitespace_patterns=function(p,T){p+="\\t ",T+="\\n\\r",this._match_pattern=this._input.get_regexp("["+p+T+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+T+"]")},h.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var p=this._input.read(this._match_pattern);if(p===" ")this.whitespace_before_token=" ";else if(p){var T=this.__split(this._newline_regexp,p);this.newline_count=T.length-1,this.whitespace_before_token=T[this.newline_count]}return p},h.prototype.matching=function(p,T){var W=this._create();return W.__set_whitespace_patterns(p,T),W._update(),W},h.prototype._create=function(){return new h(this._input,this)},h.prototype.__split=function(p,T){p.lastIndex=0;for(var W=0,_=[],g=p.exec(T);g;)_.push(T.substring(W,g.index)),W=g.index+g[0].length,g=p.exec(T);return W<T.length?_.push(T.substring(W,T.length)):_.push(""),_},I.exports.WhitespacePattern=h},function(I){function E(f,d){this._input=f,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,d&&(this._starting_pattern=this._input.get_regexp(d._starting_pattern,!0),this._match_pattern=this._input.get_regexp(d._match_pattern,!0),this._until_pattern=this._input.get_regexp(d._until_pattern),this._until_after=d._until_after)}E.prototype.read=function(){var f=this._input.read(this._starting_pattern);return(!this._starting_pattern||f)&&(f+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),f},E.prototype.read_match=function(){return this._input.match(this._match_pattern)},E.prototype.until_after=function(f){var d=this._create();return d._until_after=!0,d._until_pattern=this._input.get_regexp(f),d._update(),d},E.prototype.until=function(f){var d=this._create();return d._until_after=!1,d._until_pattern=this._input.get_regexp(f),d._update(),d},E.prototype.starting_with=function(f){var d=this._create();return d._starting_pattern=this._input.get_regexp(f,!0),d._update(),d},E.prototype.matching=function(f){var d=this._create();return d._match_pattern=this._input.get_regexp(f,!0),d._update(),d},E.prototype._create=function(){return new E(this._input,this)},E.prototype._update=function(){},I.exports.Pattern=E},function(I){function E(f,d){f=typeof f=="string"?f:f.source,d=typeof d=="string"?d:d.source,this.__directives_block_pattern=new RegExp(f+/ beautify( \w+[:]\w+)+ /.source+d,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(f+/\sbeautify\signore:end\s/.source+d,"g")}E.prototype.get_directives=function(f){if(!f.match(this.__directives_block_pattern))return null;var d={};this.__directive_pattern.lastIndex=0;for(var h=this.__directive_pattern.exec(f);h;)d[h[1]]=h[2],h=this.__directive_pattern.exec(f);return d},E.prototype.readIgnored=function(f){return f.readUntilAfter(this.__directives_end_ignore_pattern)},I.exports.Directives=E},function(I,E,f){var d=f(12).Pattern,h={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function p(T,W){d.call(this,T,W),this.__template_pattern=null,this._disabled=Object.assign({},h),this._excluded=Object.assign({},h),W&&(this.__template_pattern=this._input.get_regexp(W.__template_pattern),this._excluded=Object.assign(this._excluded,W._excluded),this._disabled=Object.assign(this._disabled,W._disabled));var _=new d(T);this.__patterns={handlebars_comment:_.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:_.starting_with(/{{{/).until_after(/}}}/),handlebars:_.starting_with(/{{/).until_after(/}}/),php:_.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:_.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:_.starting_with(/{%/).until_after(/%}/),django_value:_.starting_with(/{{/).until_after(/}}/),django_comment:_.starting_with(/{#/).until_after(/#}/),smarty:_.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:_.starting_with(/{\*/).until_after(/\*}/),smarty_literal:_.starting_with(/{literal}/).until_after(/{\/literal}/)}}p.prototype=new d,p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){this.__set_templated_pattern()},p.prototype.disable=function(T){var W=this._create();return W._disabled[T]=!0,W._update(),W},p.prototype.read_options=function(T){var W=this._create();for(var _ in h)W._disabled[_]=T.templating.indexOf(_)===-1;return W._update(),W},p.prototype.exclude=function(T){var W=this._create();return W._excluded[T]=!0,W._update(),W},p.prototype.read=function(){var T="";this._match_pattern?T=this._input.read(this._starting_pattern):T=this._input.read(this._starting_pattern,this.__template_pattern);for(var W=this._read_template();W;)this._match_pattern?W+=this._input.read(this._match_pattern):W+=this._input.readUntil(this.__template_pattern),T+=W,W=this._read_template();return this._until_after&&(T+=this._input.readUntilAfter(this._until_pattern)),T},p.prototype.__set_templated_pattern=function(){var T=[];this._disabled.php||T.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||T.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||T.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(T.push(this.__patterns.django._starting_pattern.source),T.push(this.__patterns.django_value._starting_pattern.source),T.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||T.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&T.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+T.join("|")+")")},p.prototype._read_template=function(){var T="",W=this._input.peek();if(W==="<"){var _=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&_==="?"&&(T=T||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&_==="%"&&(T=T||this.__patterns.erb.read())}else W==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(T=T||this.__patterns.handlebars_comment.read(),T=T||this.__patterns.handlebars_unescaped.read(),T=T||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(T=T||this.__patterns.django_value.read()),this._excluded.django||(T=T||this.__patterns.django_comment.read(),T=T||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(T=T||this.__patterns.smarty_comment.read(),T=T||this.__patterns.smarty_literal.read(),T=T||this.__patterns.smarty.read()));return T},I.exports.TemplatablePattern=p},,,,function(I,E,f){var d=f(19).Beautifier,h=f(20).Options;function p(T,W,_,g){var j=new d(T,W,_,g);return j.beautify()}I.exports=p,I.exports.defaultOptions=function(){return new h}},function(I,E,f){var d=f(20).Options,h=f(2).Output,p=f(21).Tokenizer,T=f(21).TOKEN,W=/\r\n|[\r\n]/,_=/\r\n|[\r\n]/g,g=function(z,F){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=z.max_preserve_newlines,this.preserve_newlines=z.preserve_newlines,this._output=new h(z,F)};g.prototype.current_line_has_match=function(z){return this._output.current_line.has_match(z)},g.prototype.set_space_before_token=function(z,F){this._output.space_before_token=z,this._output.non_breaking_space=F},g.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},g.prototype.add_raw_token=function(z){this._output.add_raw_token(z)},g.prototype.print_preserved_newlines=function(z){var F=0;z.type!==T.TEXT&&z.previous.type!==T.TEXT&&(F=z.newlines?1:0),this.preserve_newlines&&(F=z.newlines<this.max_preserve_newlines+1?z.newlines:this.max_preserve_newlines+1);for(var K=0;K<F;K++)this.print_newline(K>0);return F!==0},g.prototype.traverse_whitespace=function(z){return z.whitespace_before||z.newlines?(this.print_preserved_newlines(z)||(this._output.space_before_token=!0),!0):!1},g.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},g.prototype.print_newline=function(z){this._output.add_new_line(z)},g.prototype.print_token=function(z){z.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(z.text))},g.prototype.indent=function(){this.indent_level++},g.prototype.get_full_indent=function(z){return z=this.indent_level+(z||0),z<1?"":this._output.get_indent_string(z)};var j=function(z){for(var F=null,K=z.next;K.type!==T.EOF&&z.closed!==K;){if(K.type===T.ATTRIBUTE&&K.text==="type"){K.next&&K.next.type===T.EQUALS&&K.next.next&&K.next.next.type===T.VALUE&&(F=K.next.next.text);break}K=K.next}return F},Q=function(z,F){var K=null,xe=null;return F.closed?(z==="script"?K="text/javascript":z==="style"&&(K="text/css"),K=j(F)||K,K.search("text/css")>-1?xe="css":K.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?xe="javascript":K.search(/(text|application|dojo)\/(x-)?(html)/)>-1?xe="html":K.search(/test\/null/)>-1&&(xe="null"),xe):null};function J(z,F){return F.indexOf(z)!==-1}function P(z,F,K){this.parent=z||null,this.tag=F?F.tag_name:"",this.indent_level=K||0,this.parser_token=F||null}function te(z){this._printer=z,this._current_frame=null}te.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},te.prototype.record_tag=function(z){var F=new P(this._current_frame,z,this._printer.indent_level);this._current_frame=F},te.prototype._try_pop_frame=function(z){var F=null;return z&&(F=z.parser_token,this._printer.indent_level=z.indent_level,this._current_frame=z.parent),F},te.prototype._get_frame=function(z,F){for(var K=this._current_frame;K&&!(z.indexOf(K.tag)!==-1);){if(F&&F.indexOf(K.tag)!==-1){K=null;break}K=K.parent}return K},te.prototype.try_pop=function(z,F){var K=this._get_frame([z],F);return this._try_pop_frame(K)},te.prototype.indent_to_tag=function(z){var F=this._get_frame(z);F&&(this._printer.indent_level=F.indent_level)};function H(z,F,K,xe){this._source_text=z||"",F=F||{},this._js_beautify=K,this._css_beautify=xe,this._tag_stack=null;var M=new d(F,"html");this._options=M,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,"force".length)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,"preserve".length)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}H.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var z=this._source_text,F=this._options.eol;this._options.eol==="auto"&&(F=`
|
|
`,z&&W.test(z)&&(F=z.match(W)[0])),z=z.replace(_,`
|
|
`);var K=z.match(/^[\t ]*/)[0],xe={text:"",type:""},M=new le,u=new g(this._options,K),v=new p(z,this._options).tokenize();this._tag_stack=new te(u);for(var A=null,l=v.next();l.type!==T.EOF;)l.type===T.TAG_OPEN||l.type===T.COMMENT?(A=this._handle_tag_open(u,l,M,xe),M=A):l.type===T.ATTRIBUTE||l.type===T.EQUALS||l.type===T.VALUE||l.type===T.TEXT&&!M.tag_complete?A=this._handle_inside_tag(u,l,M,v):l.type===T.TAG_CLOSE?A=this._handle_tag_close(u,l,M):l.type===T.TEXT?A=this._handle_text(u,l,M):u.add_raw_token(l),xe=A,l=v.next();var C=u._output.get_code(F);return C},H.prototype._handle_tag_close=function(z,F,K){var xe={text:F.text,type:F.type};return z.alignment_size=0,K.tag_complete=!0,z.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),K.is_unformatted?z.add_raw_token(F):(K.tag_start_char==="<"&&(z.set_space_before_token(F.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&K.has_wrapped_attrs&&z.print_newline(!1)),z.print_token(F)),K.indent_content&&!(K.is_unformatted||K.is_content_unformatted)&&(z.indent(),K.indent_content=!1),!K.is_inline_element&&!(K.is_unformatted||K.is_content_unformatted)&&z.set_wrap_point(),xe},H.prototype._handle_inside_tag=function(z,F,K,xe){var M=K.has_wrapped_attrs,u={text:F.text,type:F.type};if(z.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),K.is_unformatted)z.add_raw_token(F);else if(K.tag_start_char==="{"&&F.type===T.TEXT)z.print_preserved_newlines(F)?(F.newlines=0,z.add_raw_token(F)):z.print_token(F);else{if(F.type===T.ATTRIBUTE?(z.set_space_before_token(!0),K.attr_count+=1):(F.type===T.EQUALS||F.type===T.VALUE&&F.previous.type===T.EQUALS)&&z.set_space_before_token(!1),F.type===T.ATTRIBUTE&&K.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(z.traverse_whitespace(F),M=M||F.newlines!==0),this._is_wrap_attributes_force)){var v=K.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&K.attr_count===1){var A=!0,l=0,C;do{if(C=xe.peek(l),C.type===T.ATTRIBUTE){A=!1;break}l+=1}while(l<4&&C.type!==T.EOF&&C.type!==T.TAG_CLOSE);v=!A}v&&(z.print_newline(!1),M=!0)}z.print_token(F),M=M||z.previous_token_wrapped(),K.has_wrapped_attrs=M}return u},H.prototype._handle_text=function(z,F,K){var xe={text:F.text,type:"TK_CONTENT"};return K.custom_beautifier_name?this._print_custom_beatifier_text(z,F,K):K.is_unformatted||K.is_content_unformatted?z.add_raw_token(F):(z.traverse_whitespace(F),z.print_token(F)),xe},H.prototype._print_custom_beatifier_text=function(z,F,K){var xe=this;if(F.text!==""){var M=F.text,u,v=1,A="",l="";K.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?u=this._js_beautify:K.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?u=this._css_beautify:K.custom_beautifier_name==="html"&&(u=function(be,G){var $=new H(be,G,xe._js_beautify,xe._css_beautify);return $.beautify()}),this._options.indent_scripts==="keep"?v=0:this._options.indent_scripts==="separate"&&(v=-z.indent_level);var C=z.get_full_indent(v);if(M=M.replace(/\n[ \t]*$/,""),K.custom_beautifier_name!=="html"&&M[0]==="<"&&M.match(/^(<!--|<!\[CDATA\[)/)){var D=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(M);if(!D){z.add_raw_token(F);return}A=C+D[1]+`
|
|
`,M=D[4],D[5]&&(l=C+D[5]),M=M.replace(/\n[ \t]*$/,""),(D[2]||D[3].indexOf(`
|
|
`)!==-1)&&(D=D[3].match(/[ \t]+$/),D&&(F.whitespace_before=D[0]))}if(M)if(u){var he=function(){this.eol=`
|
|
`};he.prototype=this._options.raw_options;var _e=new he;M=u(C+M,_e)}else{var Ae=F.whitespace_before;Ae&&(M=M.replace(new RegExp(`
|
|
(`+Ae+")?","g"),`
|
|
`)),M=C+M.replace(/\n/g,`
|
|
`+C)}A&&(M?M=A+M+`
|
|
`+l:M=A+l),z.print_newline(!1),M&&(F.text=M,F.whitespace_before="",F.newlines=0,z.add_raw_token(F),z.print_newline(!0))}},H.prototype._handle_tag_open=function(z,F,K,xe){var M=this._get_tag_open_token(F);return(K.is_unformatted||K.is_content_unformatted)&&!K.is_empty_element&&F.type===T.TAG_OPEN&&F.text.indexOf("</")===0?(z.add_raw_token(F),M.start_tag_token=this._tag_stack.try_pop(M.tag_name)):(z.traverse_whitespace(F),this._set_tag_position(z,F,M,K,xe),M.is_inline_element||z.set_wrap_point(),z.print_token(F)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(M.alignment_size=F.text.length+1),!M.tag_complete&&!M.is_unformatted&&(z.alignment_size=M.alignment_size),M};var le=function(z,F){if(this.parent=z||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!F)this.tag_complete=!0;else{var K;this.tag_start_char=F.text[0],this.text=F.text,this.tag_start_char==="<"?(K=F.text.match(/^<([^\s>]*)/),this.tag_check=K?K[1]:""):(K=F.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=K?K[1]:"",(F.text.startsWith("{{#>")||F.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&F.next!==null?this.tag_check=F.next.text.split(" ")[0]:this.tag_check=F.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),F.type===T.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||F.closed&&F.closed.text==="/>";var xe=2;this.tag_start_char==="{"&&this.text.length>=3&&(this.text.charAt(2)==="~"&&(xe=3)),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(xe)))}};H.prototype._get_tag_open_token=function(z){var F=new le(this._tag_stack.get_parser_token(),z);return F.alignment_size=this._options.wrap_attributes_indent_size,F.is_end_tag=F.is_end_tag||J(F.tag_check,this._options.void_elements),F.is_empty_element=F.tag_complete||F.is_start_tag&&F.is_end_tag,F.is_unformatted=!F.tag_complete&&J(F.tag_check,this._options.unformatted),F.is_content_unformatted=!F.is_empty_element&&J(F.tag_check,this._options.content_unformatted),F.is_inline_element=J(F.tag_name,this._options.inline)||F.tag_name.includes("-")||F.tag_start_char==="{",F},H.prototype._set_tag_position=function(z,F,K,xe,M){if(K.is_empty_element||(K.is_end_tag?K.start_tag_token=this._tag_stack.try_pop(K.tag_name):(this._do_optional_end_element(K)&&(K.is_inline_element||z.print_newline(!1)),this._tag_stack.record_tag(K),(K.tag_name==="script"||K.tag_name==="style")&&!(K.is_unformatted||K.is_content_unformatted)&&(K.custom_beautifier_name=Q(K.tag_check,F)))),J(K.tag_check,this._options.extra_liners)&&(z.print_newline(!1),z._output.just_added_blankline()||z.print_newline(!0)),K.is_empty_element){if(K.tag_start_char==="{"&&K.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),K.indent_content=!0;var u=z.current_line_has_match(/{{#if/);u||z.print_newline(!1)}K.tag_name==="!--"&&M.type===T.TAG_CLOSE&&xe.is_end_tag&&K.text.indexOf(`
|
|
`)===-1||(K.is_inline_element||K.is_unformatted||z.print_newline(!1),this._calcluate_parent_multiline(z,K))}else if(K.is_end_tag){var v=!1;v=K.start_tag_token&&K.start_tag_token.multiline_content,v=v||!K.is_inline_element&&!(xe.is_inline_element||xe.is_unformatted)&&!(M.type===T.TAG_CLOSE&&K.start_tag_token===xe)&&M.type!=="TK_CONTENT",(K.is_content_unformatted||K.is_unformatted)&&(v=!1),v&&z.print_newline(!1)}else K.indent_content=!K.custom_beautifier_name,K.tag_start_char==="<"&&(K.tag_name==="html"?K.indent_content=this._options.indent_inner_html:K.tag_name==="head"?K.indent_content=this._options.indent_head_inner_html:K.tag_name==="body"&&(K.indent_content=this._options.indent_body_inner_html)),!(K.is_inline_element||K.is_unformatted)&&(M.type!=="TK_CONTENT"||K.is_content_unformatted)&&z.print_newline(!1),this._calcluate_parent_multiline(z,K)},H.prototype._calcluate_parent_multiline=function(z,F){F.parent&&z._output.just_added_newline()&&!((F.is_inline_element||F.is_unformatted)&&F.parent.is_inline_element)&&(F.parent.multiline_content=!0)};var ye=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],ge=["a","audio","del","ins","map","noscript","video"];H.prototype._do_optional_end_element=function(z){var F=null;if(z.is_empty_element||!z.is_start_tag||!z.parent)return;if(z.tag_name==="body")F=F||this._tag_stack.try_pop("head");else if(z.tag_name==="li")F=F||this._tag_stack.try_pop("li",["ol","ul"]);else if(z.tag_name==="dd"||z.tag_name==="dt")F=F||this._tag_stack.try_pop("dt",["dl"]),F=F||this._tag_stack.try_pop("dd",["dl"]);else if(z.parent.tag_name==="p"&&ye.indexOf(z.tag_name)!==-1){var K=z.parent.parent;(!K||ge.indexOf(K.tag_name)===-1)&&(F=F||this._tag_stack.try_pop("p"))}else z.tag_name==="rp"||z.tag_name==="rt"?(F=F||this._tag_stack.try_pop("rt",["ruby","rtc"]),F=F||this._tag_stack.try_pop("rp",["ruby","rtc"])):z.tag_name==="optgroup"?F=F||this._tag_stack.try_pop("optgroup",["select"]):z.tag_name==="option"?F=F||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):z.tag_name==="colgroup"?F=F||this._tag_stack.try_pop("caption",["table"]):z.tag_name==="thead"?(F=F||this._tag_stack.try_pop("caption",["table"]),F=F||this._tag_stack.try_pop("colgroup",["table"])):z.tag_name==="tbody"||z.tag_name==="tfoot"?(F=F||this._tag_stack.try_pop("caption",["table"]),F=F||this._tag_stack.try_pop("colgroup",["table"]),F=F||this._tag_stack.try_pop("thead",["table"]),F=F||this._tag_stack.try_pop("tbody",["table"])):z.tag_name==="tr"?(F=F||this._tag_stack.try_pop("caption",["table"]),F=F||this._tag_stack.try_pop("colgroup",["table"]),F=F||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(z.tag_name==="th"||z.tag_name==="td")&&(F=F||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),F=F||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return z.parent=this._tag_stack.get_parser_token(),F},I.exports.Beautifier=H},function(I,E,f){var d=f(6).Options;function h(p){d.call(this,p,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}h.prototype=new d,I.exports.Options=h},function(I,E,f){var d=f(9).Tokenizer,h=f(9).TOKEN,p=f(13).Directives,T=f(14).TemplatablePattern,W=f(12).Pattern,_={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:h.START,RAW:h.RAW,EOF:h.EOF},g=new p(/<\!--/,/-->/),j=function(Q,J){d.call(this,Q,J),this._current_tag_name="";var P=new T(this._input).read_options(this._options),te=new W(this._input);if(this.__patterns={word:P.until(/[\n\r\t <]/),single_quote:P.until_after(/'/),double_quote:P.until_after(/"/),attribute:P.until(/[\n\r\t =>]|\/>/),element_name:P.until(/[\n\r\t >\/]/),handlebars_comment:te.starting_with(/{{!--/).until_after(/--}}/),handlebars:te.starting_with(/{{/).until_after(/}}/),handlebars_open:te.until(/[\n\r\t }]/),handlebars_raw_close:te.until(/}}/),comment:te.starting_with(/<!--/).until_after(/-->/),cdata:te.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:te.starting_with(/<!\[/).until_after(/]>/),processing:te.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var H=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=te.matching(H).until_after(H)}};j.prototype=new d,j.prototype._is_comment=function(Q){return!1},j.prototype._is_opening=function(Q){return Q.type===_.TAG_OPEN},j.prototype._is_closing=function(Q,J){return Q.type===_.TAG_CLOSE&&J&&((Q.text===">"||Q.text==="/>")&&J.text[0]==="<"||Q.text==="}}"&&J.text[0]==="{"&&J.text[1]==="{")},j.prototype._reset=function(){this._current_tag_name=""},j.prototype._get_next_token=function(Q,J){var P=null;this._readWhitespace();var te=this._input.peek();return te===null?this._create_token(_.EOF,""):(P=P||this._read_open_handlebars(te,J),P=P||this._read_attribute(te,Q,J),P=P||this._read_close(te,J),P=P||this._read_raw_content(te,Q,J),P=P||this._read_content_word(te),P=P||this._read_comment_or_cdata(te),P=P||this._read_processing(te),P=P||this._read_open(te,J),P=P||this._create_token(_.UNKNOWN,this._input.next()),P)},j.prototype._read_comment_or_cdata=function(Q){var J=null,P=null,te=null;if(Q==="<"){var H=this._input.peek(1);H==="!"&&(P=this.__patterns.comment.read(),P?(te=g.get_directives(P),te&&te.ignore==="start"&&(P+=g.readIgnored(this._input))):P=this.__patterns.cdata.read()),P&&(J=this._create_token(_.COMMENT,P),J.directives=te)}return J},j.prototype._read_processing=function(Q){var J=null,P=null,te=null;if(Q==="<"){var H=this._input.peek(1);(H==="!"||H==="?")&&(P=this.__patterns.conditional_comment.read(),P=P||this.__patterns.processing.read()),P&&(J=this._create_token(_.COMMENT,P),J.directives=te)}return J},j.prototype._read_open=function(Q,J){var P=null,te=null;return J||Q==="<"&&(P=this._input.next(),this._input.peek()==="/"&&(P+=this._input.next()),P+=this.__patterns.element_name.read(),te=this._create_token(_.TAG_OPEN,P)),te},j.prototype._read_open_handlebars=function(Q,J){var P=null,te=null;return J||this._options.indent_handlebars&&Q==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(P=this.__patterns.handlebars_comment.read(),P=P||this.__patterns.handlebars.read(),te=this._create_token(_.COMMENT,P)):(P=this.__patterns.handlebars_open.read(),te=this._create_token(_.TAG_OPEN,P))),te},j.prototype._read_close=function(Q,J){var P=null,te=null;return J&&(J.text[0]==="<"&&(Q===">"||Q==="/"&&this._input.peek(1)===">")?(P=this._input.next(),Q==="/"&&(P+=this._input.next()),te=this._create_token(_.TAG_CLOSE,P)):J.text[0]==="{"&&Q==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),te=this._create_token(_.TAG_CLOSE,"}}"))),te},j.prototype._read_attribute=function(Q,J,P){var te=null,H="";if(P&&P.text[0]==="<")if(Q==="=")te=this._create_token(_.EQUALS,this._input.next());else if(Q==='"'||Q==="'"){var le=this._input.next();Q==='"'?le+=this.__patterns.double_quote.read():le+=this.__patterns.single_quote.read(),te=this._create_token(_.VALUE,le)}else H=this.__patterns.attribute.read(),H&&(J.type===_.EQUALS?te=this._create_token(_.VALUE,H):te=this._create_token(_.ATTRIBUTE,H));return te},j.prototype._is_content_unformatted=function(Q){return this._options.void_elements.indexOf(Q)===-1&&(this._options.content_unformatted.indexOf(Q)!==-1||this._options.unformatted.indexOf(Q)!==-1)},j.prototype._read_raw_content=function(Q,J,P){var te="";if(P&&P.text[0]==="{")te=this.__patterns.handlebars_raw_close.read();else if(J.type===_.TAG_CLOSE&&J.opened.text[0]==="<"&&J.text[0]!=="/"){var H=J.opened.text.substr(1).toLowerCase();if(H==="script"||H==="style"){var le=this._read_comment_or_cdata(Q);if(le)return le.type=_.TEXT,le;te=this._input.readUntil(new RegExp("</"+H+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(H)&&(te=this._input.readUntil(new RegExp("</"+H+"[\\n\\r\\t ]*?>","ig")))}return te?this._create_token(_.TEXT,te):null},j.prototype._read_content_word=function(Q){var J="";if(this._options.unformatted_content_delimiter&&(Q===this._options.unformatted_content_delimiter[0]&&(J=this.__patterns.unformatted_content_delimiter.read())),J||(J=this.__patterns.word.read()),J)return this._create_token(_.TEXT,J)},I.exports.Tokenizer=j,I.exports.TOKEN=_}],se={};function a(I){var E=se[I];if(E!==void 0)return E.exports;var f=se[I]={exports:{}};return ue[I](f,f.exports,a),f.exports}var N=a(18);Ie=N})();var ae=Ie;if(!0)!(re=[s,s("6UM0"),s("TXwP")],ie=function(ue){var se=s("6UM0"),a=s("TXwP");return{html_beautify:function(N,I){return ae(N,I,se.js_beautify,a.css_beautify)}}}.apply(L,re),ie!==void 0&&(De.exports=ie));else var y,R})()},qgvg:function(De,L){De.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRll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if(typeof Symbol=="undefined"||Ie[Symbol.iterator]==null){if(Array.isArray(Ie)||(y=Object(re.a)(Ie))||ae&&Ie&&typeof Ie.length=="number"){y&&(Ie=y);var R=0,ue=function(){};return{s:ue,n:function(){return R>=Ie.length?{done:!0}:{done:!1,value:Ie[R++]}},e:function(E){throw E},f:ue}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var se=!0,a=!1,N;return{s:function(){y=Ie[Symbol.iterator]()},n:function(){var E=y.next();return se=E.done,E},e:function(E){a=!0,N=E},f:function(){try{!se&&y.return!=null&&y.return()}finally{if(a)throw N}}}}},rHrb:function(De,L,s){"use strict";Object.defineProperty(L,"__esModule",{value:!0}),L.CopyToClipboard=void 0;var re=Ie(s("q1tI")),ie=Ie(s("+QRC"));function Ie(_){return _&&_.__esModule?_:{default:_}}function ae(_){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ae=function(j){return typeof j}:ae=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},ae(_)}function y(_,g){var j=Object.keys(_);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(_);g&&(Q=Q.filter(function(J){return Object.getOwnPropertyDescriptor(_,J).enumerable})),j.push.apply(j,Q)}return j}function R(_){for(var g=1;g<arguments.length;g++){var j=arguments[g]!=null?arguments[g]:{};g%2?y(j,!0).forEach(function(Q){T(_,Q,j[Q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(j)):y(j).forEach(function(Q){Object.defineProperty(_,Q,Object.getOwnPropertyDescriptor(j,Q))})}return _}function ue(_,g){if(_==null)return{};var j=se(_,g),Q,J;if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(_);for(J=0;J<P.length;J++){if(Q=P[J],g.indexOf(Q)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(_,Q))continue;j[Q]=_[Q]}}return j}function se(_,g){if(_==null)return{};var j={},Q=Object.keys(_),J,P;for(P=0;P<Q.length;P++){if(J=Q[P],g.indexOf(J)>=0)continue;j[J]=_[J]}return j}function a(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function N(_,g){for(var j=0;j<g.length;j++){var Q=g[j];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(_,Q.key,Q)}}function I(_,g,j){return g&&N(_.prototype,g),j&&N(_,j),_}function E(_,g){return g&&(ae(g)==="object"||typeof g=="function")?g:d(_)}function f(_){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)},f(_)}function d(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function h(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),g&&p(_,g)}function p(_,g){return p=Object.setPrototypeOf||function(Q,J){return Q.__proto__=J,Q},p(_,g)}function T(_,g,j){return g in _?Object.defineProperty(_,g,{value:j,enumerable:!0,configurable:!0,writable:!0}):_[g]=j,_}var W=function(_){h(g,_);function g(){var j,Q;a(this,g);for(var J=arguments.length,P=new Array(J),te=0;te<J;te++)P[te]=arguments[te];return Q=E(this,(j=f(g)).call.apply(j,[this].concat(P))),T(d(Q),"onClick",function(H){var le=Q.props,ye=le.text,ge=le.onCopy,z=le.children,F=le.options,K=re.default.Children.only(z),xe=(0,ie.default)(ye,F);ge&&ge(ye,xe),K&&K.props&&typeof K.props.onClick=="function"&&K.props.onClick(H)}),Q}return I(g,[{key:"render",value:function(){var Q=this.props,J=Q.text,P=Q.onCopy,te=Q.options,H=Q.children,le=ue(Q,["text","onCopy","options","children"]),ye=re.default.Children.only(H);return re.default.cloneElement(ye,R({},le,{onClick:this.onClick}))}}]),g}(re.default.PureComponent);L.CopyToClipboard=W,T(W,"defaultProps",{onCopy:void 0,options:void 0})},sboe:function(De,L,s){"use strict";s.d(L,"a",function(){return Ie});var re=s("q1tI"),ie=s.n(re),Ie=re.createContext(null)},t23M:function(De,L,s){"use strict";var re=s("VTBJ"),ie=s("1OyB"),Ie=s("vuIU"),ae=s("Ji7U"),y=s("LK+K"),R=s("q1tI"),ue=s.n(R),se=s("m+aA"),a=s("Zm9Q"),N=s("Kwbf"),I=s("c+Xe"),E=s("bdgK"),f="rc-observer-key",d=function(h){Object(ae.a)(T,h);var p=Object(y.a)(T);function T(){var W;return Object(ie.a)(this,T),W=p.apply(this,arguments),W.resizeObserver=null,W.childNode=null,W.currentElement=null,W.state={width:0,height:0,offsetHeight:0,offsetWidth:0},W.onResize=function(_){var g=W.props.onResize,j=_[0].target,Q=j.getBoundingClientRect(),J=Q.width,P=Q.height,te=j.offsetWidth,H=j.offsetHeight,le=Math.floor(J),ye=Math.floor(P);if(W.state.width!==le||W.state.height!==ye||W.state.offsetWidth!==te||W.state.offsetHeight!==H){var ge={width:le,height:ye,offsetWidth:te,offsetHeight:H};W.setState(ge),g&&Promise.resolve().then(function(){g(Object(re.a)(Object(re.a)({},ge),{},{offsetWidth:te,offsetHeight:H}))})}},W.setChildNode=function(_){W.childNode=_},W}return Object(Ie.a)(T,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var _=this.props.disabled;if(_){this.destroyObserver();return}var g=Object(se.a)(this.childNode||this),j=g!==this.currentElement;j&&(this.destroyObserver(),this.currentElement=g),!this.resizeObserver&&g&&(this.resizeObserver=new E.default(this.onResize),this.resizeObserver.observe(g))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var _=this.props.children,g=Object(a.a)(_);if(g.length>1)Object(N.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(g.length===0)return Object(N.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var j=g[0];if(R.isValidElement(j)&&Object(I.c)(j)){var Q=j.ref;g[0]=R.cloneElement(j,{ref:Object(I.a)(Q,this.setChildNode)})}return g.length===1?g[0]:g.map(function(J,P){return!R.isValidElement(J)||"key"in J&&J.key!==null?J:R.cloneElement(J,{key:"".concat(f,"-").concat(P)})})}}]),T}(R.Component);d.displayName="ResizeObserver",L.a=d},t9D7:function(De,L,s){"use strict";s.d(L,"b",function(){return ue}),s.d(L,"g",function(){return a}),s.d(L,"d",function(){return N}),s.d(L,"e",function(){return I}),s.d(L,"a",function(){return E}),s.d(L,"f",function(){return h}),s.d(L,"c",function(){return p});var re=s("Vhoy"),ie=s("MI8n"),Ie=s("pmY6"),ae=s("Cg/j"),y=s("ic2d"),R=s("nEHx");const ue=Object(ae.c)("themeService");var se;(function(T){function W(_){return _&&typeof _=="object"&&typeof _.id=="string"}T.isThemeColor=W})(se||(se={}));function a(T){return{id:T}}var N;(function(T){function W(P){return P&&typeof P=="object"&&typeof P.id=="string"&&(typeof P.color=="undefined"||se.isThemeColor(P.color))}T.isThemeIcon=W;const _=new RegExp(`^\\$\\((${re.a.iconNameExpression}(?:${re.a.iconModifierExpression})?)\\)$`);function g(P){const te=_.exec(P);if(!te)return;let[,H]=te;return{id:H}}T.fromString=g;function j(P,te){let H=P.id;const le=H.lastIndexOf("~");return le!==-1&&(H=H.substring(0,le)),te&&(H=`${H}~${te}`),{id:H}}T.modify=j;function Q(P,te){var H,le;return P.id===te.id&&((H=P.color)===null||H===void 0?void 0:H.id)===((le=te.color)===null||le===void 0?void 0:le.id)}T.isEqual=Q;function J(P,te){return{id:P.id,color:te?a(te):void 0}}T.asThemeIcon=J,T.asClassNameArray=re.a.asClassNameArray,T.asClassName=re.a.asClassName,T.asCSSSelector=re.a.asCSSSelector})(N||(N={}));function I(T){switch(T){case R.a.DARK:return"vs-dark";case R.a.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const E={ThemingContribution:"base.contributions.theming"};class f{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new ie.b}onColorThemeChange(T){return this.themingParticipants.push(T),this.onThemingParticipantAddedEmitter.fire(T),Object(Ie.i)(()=>{const W=this.themingParticipants.indexOf(T);this.themingParticipants.splice(W,1)})}getThemingParticipants(){return this.themingParticipants}}let d=new f;y.a.add(E.ThemingContribution,d);function h(T){return d.onColorThemeChange(T)}class p extends Ie.a{constructor(T){super();this.themeService=T,this.theme=T.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(W=>this.onThemeChange(W)))}onThemeChange(T){this.theme=T,this.updateStyles()}updateStyles(){}}},tWlo:function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zV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zIHRjWMbzhd7/MqLaZxqzxfjVFU+UjhcZCs+gp7f9nowcszMhfg17SoptSKDyym9N9cbePt8O2GrQ5pbrDRMTkwbe6MQpN6hfFRUVWa+Qb+7je23ideLAtPdGZ/cUZpw1iTsTFtFLJcBwEc2RIryHqELvW2q/qQPT4JA4AmupL5aP/Saza8A0eDU2Jvr0DrWaNkEe3L32kULmhXV+cHHR8cOvV5tcDd9f8qvm9ouAW2Zm5yhpm5uwWi9HRoRXq1UqC9zt08cDe391VUiJPyaPo+F1zddaZy80XFyLRv52v2ViPrehiJSvz6Z7rthQpZI+t6E+K91yuj+3UXnkL+7PbYxCFdiIKfgYdTcohHZ23QTnEntd8Y8AAwCTubpzlq2wWAAAAABJRU5ErkJggg=="},vHTk:function(De,L,s){De.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},"yTi+":function(De,L,s){De.exports=s.p+"static/AssistantCode3.fdd8db3c.jpeg"},yslc:function(De,L){De.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAOHklEQVR4Xu1dCXQURRr+emZyTO6D3BCEgKCInCKeK3IoiyIqlxLyQBRBV8DNhCCrS3Z9Cq66KOoi68ECKocCcutTLhUERM1MEpBLEuQmQMKEnDNd+6onEzKTuXqmJ5l0V/EeL+mp+qu+r77UVP1V9TcHffZbIJgOlhgDMmaAA8lTwVDxJQh5UMY4GTSFM8AJ+PW6cIDsBEEfhfPB4MuUAYvQaTowOwV1NXtB0E6mWBksBTNwTeiUBENud/CmHwBEKZgTBl2GDNgKnQIsyBkCM9kEEI0M8TJICmWgqdCFkT17MngsUignDLYMGXAsdAo0XzcPILkyxMwgKZAB50InhIMhZxUIGalAXhhkmTHgXOgU6PG8UFwxbgdBf5nhZnAUxoBroVMyjryQgMraPSDoqDBuGFwZMeBe6MLi9IWuIHW7QUisjLAzK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