</html>`;function xe({open:Bt=!0,onChange:et,defaultValue:nt,placement:ht,width:lt,height:gt,extra:yt,onDynamic:Pt,showExtra:Tt=!0}){const It=(0,wt.useRef)(null),zt=(0,wt.useRef)(null),[_t,se]=(0,wt.useState)(nt||""),[Jt,le]=(0,wt.useState)(nt||""),[Zt,Fe]=(0,wt.useState)(!!Bt),[me,Ve]=(0,wt.useState)(1),Qe={selectOnLineNumbers:!0};(0,wt.useEffect)(()=>{Bt&&(se(nt),le(nt),Fe(!0))},[Bt,nt]),(0,wt.useEffect)(()=>{_t!==""&&(clearTimeout(zt.current),zt.current=setTimeout(()=>{const vn=document.createElement("iframe");if(vn.style.width="100%",vn.style.height="100%",vn.style.border="0",It.current){It.current.innerHTML="",It.current.appendChild(vn);const xn=vn.contentDocument||vn.contentWindow.document;xn.open(),xn.write(_t),xn.close()}},1e3))},[Bt,_t]);const qe=vn=>{se(vn),et==null||et(vn,Jt)};return ve.createElement(ee.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Zt,width:Tt?700:"100%",height:gt||"100vh",rootClassName:te.smartWrp,destroyOnClose:!0,onClose:()=>Fe(!1),extra:Tt&&ve.createElement("div",null,ve.createElement(Nt.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:me,onChange:vn=>Ve(vn)}),ve.createElement(Le.Z,{type:"primary",className:"ml20",onClick:()=>Xt(this,null,function*(){yield Pt(_t,()=>{Fe(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ve.createElement(he.Z,{className:"h100"},ve.createElement(Ie.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:me===1?"block":"none"}},ve.createElement("div",{className:"h100",ref:It})),ve.createElement(Ie.Z,{flex:"1",style:{display:me===2?"block":"none"}},ve.createElement(Pe.ZP,{height:"90vh",value:nt,language:"html",theme:"vs",showMiniMap:!1,options:Qe,onChange:qe}))))}var je=xe},43276:function(dn,Mn,bt){"use strict";bt.d(Mn,{Z:function(){return se}});var wt=bt(59301),ee=bt(72719),he=bt(77596),Ie=bt(93772),te=bt(14179),Pe=bt(56102),Nt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Le=bt(8591),ve=bt(11611),Xt=bt(35328),fe=bt(30084),xe=bt(10787),je=bt(50304),Bt=bt(83251),et=Object.defineProperty,nt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Pt=(Jt,le,Zt)=>le in Jt?et(Jt,le,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):Jt[le]=Zt,Tt=(Jt,le)=>{for(var Zt in le||(le={}))gt.call(le,Zt)&&Pt(Jt,Zt,le[Zt]);if(lt)for(var Zt of lt(le))yt.call(le,Zt)&&Pt(Jt,Zt,le[Zt]);return Jt},It=(Jt,le)=>nt(Jt,ht(le)),zt=(Jt,le)=>{var Zt={};for(var Fe in Jt)gt.call(Jt,Fe)&&le.indexOf(Fe)<0&&(Zt[Fe]=Jt[Fe]);if(Jt!=null&<)for(var Fe of lt(Jt))le.indexOf(Fe)<0&&yt.call(Jt,Fe)&&(Zt[Fe]=Jt[Fe]);return Zt},se=({onFinish:Jt,value:le,streamingStatus:Zt,cancelIndex:Fe,loadImage:me,onDynamic:Ve})=>{const[Qe,qe]=(0,wt.useState)(""),[vn,xn]=(0,wt.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Se,Vt]=(0,wt.useState)(0),[Xe,Xn]=(0,wt.useState)(!1),Bn=bn=>bn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Jn,mn)=>`<mathx data-text="${mn.trim()}">$$${mn.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ae=()=>{Xn(!0),Jt==null||Jt()};(0,wt.useEffect)(()=>{constbn=me?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function xe({open:Bt=!0,onChange:et,defaultValue:nt,placement:ht,width:lt,height:gt,extra:yt,onDynamic:Pt,showExtra:Tt=!0}){const It=(0,wt.useRef)(null),zt=(0,wt.useRef)(null),[_t,se]=(0,wt.useState)(nt||""),[Jt,le]=(0,wt.useState)(nt||""),[Zt,Fe]=(0,wt.useState)(!!Bt),[me,Ve]=(0,wt.useState)(1),Qe={selectOnLineNumbers:!0};(0,wt.useEffect)(()=>{Bt&&(se(nt),le(nt),Fe(!0))},[Bt,nt]),(0,wt.useEffect)(()=>{_t!==""&&(clearTimeout(zt.current),zt.current=setTimeout(()=>{const vn=document.createElement("iframe");if(vn.style.width="100%",vn.style.height="100%",vn.style.border="0",It.current){It.current.innerHTML="",It.current.appendChild(vn);const xn=vn.contentDocument||vn.contentWindow.document;xn.open(),xn.write(_t),xn.close()}},1e3))},[Bt,_t]);const qe=vn=>{se(vn),et==null||et(vn,Jt)};return ve.createElement(ee.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Zt,width:Tt?700:"100%",height:gt||"100vh",rootClassName:te.smartWrp,destroyOnClose:!0,onClose:()=>Fe(!1),extra:Tt&&ve.createElement("div",null,ve.createElement(Nt.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:me,onChange:vn=>Ve(vn)}),ve.createElement(Le.Z,{type:"primary",className:"ml20",onClick:()=>Xt(this,null,function*(){yield Pt(_t,()=>{Fe(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ve.createElement(he.Z,{className:"h100"},ve.createElement(Ie.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:me===1?"block":"none"}},ve.createElement("div",{className:"h100",ref:It})),ve.createElement(Ie.Z,{flex:"1",style:{display:me===2?"block":"none"}},ve.createElement(Pe.ZP,{height:"90vh",value:nt,language:"html",theme:"vs",showMiniMap:!1,options:Qe,onChange:qe}))))}var je=xe},43276:function(dn,Mn,bt){"use strict";bt.d(Mn,{Z:function(){return se}});var wt=bt(59301),ee=bt(96536),he=bt(77596),Ie=bt(93772),te=bt(14179),Pe=bt(56102),Nt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Le=bt(8591),ve=bt(11611),Xt=bt(35328),fe=bt(30084),xe=bt(10787),je=bt(50304),Bt=bt(83251),et=Object.defineProperty,nt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Pt=(Jt,le,Zt)=>le in Jt?et(Jt,le,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):Jt[le]=Zt,Tt=(Jt,le)=>{for(var Zt in le||(le={}))gt.call(le,Zt)&&Pt(Jt,Zt,le[Zt]);if(lt)for(var Zt of lt(le))yt.call(le,Zt)&&Pt(Jt,Zt,le[Zt]);return Jt},It=(Jt,le)=>nt(Jt,ht(le)),zt=(Jt,le)=>{var Zt={};for(var Fe in Jt)gt.call(Jt,Fe)&&le.indexOf(Fe)<0&&(Zt[Fe]=Jt[Fe]);if(Jt!=null&<)for(var Fe of lt(Jt))le.indexOf(Fe)<0&&yt.call(Jt,Fe)&&(Zt[Fe]=Jt[Fe]);return Zt},se=({onFinish:Jt,value:le,streamingStatus:Zt,cancelIndex:Fe,loadImage:me,onDynamic:Ve})=>{const[Qe,qe]=(0,wt.useState)(""),[vn,xn]=(0,wt.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Se,Vt]=(0,wt.useState)(0),[Xe,Xn]=(0,wt.useState)(!1),Bn=bn=>bn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Jn,mn)=>`<mathx data-text="${mn.trim()}">$$${mn.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ae=()=>{Xn(!0),Jt==null||Jt()};(0,wt.useEffect)(()=>{constbn=me?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Me({open:Nt=!0,onChange:et,defaultValue:nt,placement:ht,width:lt,height:pt,extra:yt,onDynamic:Ct,showExtra:Tt=!0}){const Dt=(0,ft.useRef)(null),Wt=(0,ft.useRef)(null),[ie,se]=(0,ft.useState)(nt||""),[te,Se]=(0,ft.useState)(nt||""),[Vt,Pe]=(0,ft.useState)(!!Nt),[ve,qe]=(0,ft.useState)(1),ze={selectOnLineNumbers:!0};(0,ft.useEffect)(()=>{Nt&&(se(nt),Se(nt),Pe(!0))},[Nt,nt]),(0,ft.useEffect)(()=>{ie!==""&&(clearTimeout(Wt.current),Wt.current=setTimeout(()=>{const Hn=document.createElement("iframe");if(Hn.style.width="100%",Hn.style.height="100%",Hn.style.border="0",Dt.current){Dt.current.innerHTML="",Dt.current.appendChild(Hn);const jn=Hn.contentDocument||Hn.contentWindow.document;jn.open(),jn.write(ie),jn.close()}},1e3))},[Nt,ie]);const en=Hn=>{se(Hn),et==null||et(Hn,te)};return pe.createElement(Ot.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Vt,width:Tt?700:"100%",height:pt||"100vh",rootClassName:ne.smartWrp,destroyOnClose:!0,onClose:()=>Pe(!1),extra:Tt&&pe.createElement("div",null,pe.createElement(Bt.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:ve,onChange:Hn=>qe(Hn)}),pe.createElement(Fe.Z,{type:"primary",className:"ml20",onClick:()=>Kt(this,null,function*(){yield Ct(ie,()=>{Pe(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},pe.createElement(le.Z,{className:"h100"},pe.createElement(Ie.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:ve===1?"block":"none"}},pe.createElement("div",{className:"h100",ref:Dt})),pe.createElement(Ie.Z,{flex:"1",style:{display:ve===2?"block":"none"}},pe.createElement(Ce.ZP,{height:"90vh",value:nt,language:"html",theme:"vs",showMiniMap:!1,options:ze,onChange:en}))))}var He=Me},43276:function(Tn,In,wt){"use strict";wt.d(In,{Z:function(){return se}});var ft=wt(59301),Ot=wt(72719),le=wt(77596),Ie=wt(93772),ne=wt(14179),Ce=wt(56102),Bt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Fe=wt(8591),pe=wt(11611),Kt=wt(35328),fe=wt(30084),Me=wt(10787),He=wt(50304),Nt=wt(83251),et=Object.defineProperty,nt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Ct=(te,Se,Vt)=>Se in te?et(te,Se,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):te[Se]=Vt,Tt=(te,Se)=>{for(var Vt in Se||(Se={}))pt.call(Se,Vt)&&Ct(te,Vt,Se[Vt]);if(lt)for(var Vt of lt(Se))yt.call(Se,Vt)&&Ct(te,Vt,Se[Vt]);return te},Dt=(te,Se)=>nt(te,ht(Se)),Wt=(te,Se)=>{var Vt={};for(var Pe in te)pt.call(te,Pe)&&Se.indexOf(Pe)<0&&(Vt[Pe]=te[Pe]);if(te!=null&<)for(var Pe of lt(te))Se.indexOf(Pe)<0&&yt.call(te,Pe)&&(Vt[Pe]=te[Pe]);return Vt},se=({onFinish:te,value:Se,streamingStatus:Vt,cancelIndex:Pe,loadImage:ve,onDynamic:qe})=>{const[ze,en]=(0,ft.useState)(""),[Hn,jn]=(0,ft.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Be,Qt]=(0,ft.useState)(0),[cn,Kn]=(0,ft.useState)(!1),Dn=Ln=>Ln.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ni,mn)=>`<mathx data-text="${mn.trim()}">$$${mn.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),je=()=>{Kn(!0),te==null||te()};(0,ft.useEffect)(()=>{constLn=ve?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Me({open:Nt=!0,onChange:et,defaultValue:nt,placement:ht,width:lt,height:pt,extra:yt,onDynamic:Ct,showExtra:Tt=!0}){const Dt=(0,ft.useRef)(null),Wt=(0,ft.useRef)(null),[ie,se]=(0,ft.useState)(nt||""),[te,Se]=(0,ft.useState)(nt||""),[Vt,Pe]=(0,ft.useState)(!!Nt),[ve,qe]=(0,ft.useState)(1),ze={selectOnLineNumbers:!0};(0,ft.useEffect)(()=>{Nt&&(se(nt),Se(nt),Pe(!0))},[Nt,nt]),(0,ft.useEffect)(()=>{ie!==""&&(clearTimeout(Wt.current),Wt.current=setTimeout(()=>{const Hn=document.createElement("iframe");if(Hn.style.width="100%",Hn.style.height="100%",Hn.style.border="0",Dt.current){Dt.current.innerHTML="",Dt.current.appendChild(Hn);const jn=Hn.contentDocument||Hn.contentWindow.document;jn.open(),jn.write(ie),jn.close()}},1e3))},[Nt,ie]);const en=Hn=>{se(Hn),et==null||et(Hn,te)};return pe.createElement(Ot.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Vt,width:Tt?700:"100%",height:pt||"100vh",rootClassName:ne.smartWrp,destroyOnClose:!0,onClose:()=>Pe(!1),extra:Tt&&pe.createElement("div",null,pe.createElement(Bt.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:ve,onChange:Hn=>qe(Hn)}),pe.createElement(Fe.Z,{type:"primary",className:"ml20",onClick:()=>Kt(this,null,function*(){yield Ct(ie,()=>{Pe(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},pe.createElement(le.Z,{className:"h100"},pe.createElement(Ie.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:ve===1?"block":"none"}},pe.createElement("div",{className:"h100",ref:Dt})),pe.createElement(Ie.Z,{flex:"1",style:{display:ve===2?"block":"none"}},pe.createElement(Ce.ZP,{height:"90vh",value:nt,language:"html",theme:"vs",showMiniMap:!1,options:ze,onChange:en}))))}var He=Me},43276:function(Tn,In,wt){"use strict";wt.d(In,{Z:function(){return se}});var ft=wt(59301),Ot=wt(96536),le=wt(77596),Ie=wt(93772),ne=wt(14179),Ce=wt(56102),Bt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Fe=wt(8591),pe=wt(11611),Kt=wt(35328),fe=wt(30084),Me=wt(10787),He=wt(50304),Nt=wt(83251),et=Object.defineProperty,nt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Ct=(te,Se,Vt)=>Se in te?et(te,Se,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):te[Se]=Vt,Tt=(te,Se)=>{for(var Vt in Se||(Se={}))pt.call(Se,Vt)&&Ct(te,Vt,Se[Vt]);if(lt)for(var Vt of lt(Se))yt.call(Se,Vt)&&Ct(te,Vt,Se[Vt]);return te},Dt=(te,Se)=>nt(te,ht(Se)),Wt=(te,Se)=>{var Vt={};for(var Pe in te)pt.call(te,Pe)&&Se.indexOf(Pe)<0&&(Vt[Pe]=te[Pe]);if(te!=null&<)for(var Pe of lt(te))Se.indexOf(Pe)<0&&yt.call(te,Pe)&&(Vt[Pe]=te[Pe]);return Vt},se=({onFinish:te,value:Se,streamingStatus:Vt,cancelIndex:Pe,loadImage:ve,onDynamic:qe})=>{const[ze,en]=(0,ft.useState)(""),[Hn,jn]=(0,ft.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Be,Qt]=(0,ft.useState)(0),[cn,Kn]=(0,ft.useState)(!1),Dn=Ln=>Ln.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ni,mn)=>`<mathx data-text="${mn.trim()}">$$${mn.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),je=()=>{Kn(!0),te==null||te()};(0,ft.useEffect)(()=>{constLn=ve?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function r({open:n=!0,onChange:s,defaultValue:d,placement:g,width:A,height:m,extra:h,onDynamic:y,showExtra:x=!0}){const w=(0,D.useRef)(null),C=(0,D.useRef)(null),[b,S]=(0,D.useState)(d||""),[E,I]=(0,D.useState)(d||""),[P,R]=(0,D.useState)(!!n),[T,M]=(0,D.useState)(1),O={selectOnLineNumbers:!0};(0,D.useEffect)(()=>{n&&(S(d),I(d),R(!0))},[n,d]),(0,D.useEffect)(()=>{b!==""&&(clearTimeout(C.current),C.current=setTimeout(()=>{const Q=document.createElement("iframe");if(Q.style.width="100%",Q.style.height="100%",Q.style.border="0",w.current){w.current.innerHTML="",w.current.appendChild(Q);const X=Q.contentDocument||Q.contentWindow.document;X.open(),X.write(b),X.close()}},1e3))},[n,b]);const k=Q=>{S(Q),s==null||s(Q,E)};return a.createElement(W.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:P,width:x?700:"100%",height:m||"100vh",rootClassName:p.smartWrp,destroyOnClose:!0,onClose:()=>R(!1),extra:x&&a.createElement("div",null,a.createElement(u.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:T,onChange:Q=>M(Q)}),a.createElement(o.Z,{type:"primary",className:"ml20",onClick:()=>c(this,null,function*(){yield y(b,()=>{R(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},a.createElement(e.Z,{className:"h100"},a.createElement(v.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:T===1?"block":"none"}},a.createElement("div",{className:"h100",ref:w})),a.createElement(v.Z,{flex:"1",style:{display:T===2?"block":"none"}},a.createElement(l.ZP,{height:"90vh",value:d,language:"html",theme:"vs",showMiniMap:!1,options:O,onChange:k}))))}var t=r},43276:function(je,pe,B){"use strict";B.d(pe,{Z:function(){return S}});var D=B(59301),W=B(72719),e=B(77596),v=B(93772),p=B(14179),l=B(56102),u={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},o=B(8591),a=B(11611),c=B(35328),i=B(30084),r=B(10787),t=B(50304),n=B(83251),s=Object.defineProperty,d=Object.defineProperties,g=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,y=(E,I,P)=>I in E?s(E,I,{enumerable:!0,configurable:!0,writable:!0,value:P}):E[I]=P,x=(E,I)=>{for(var P in I||(I={}))m.call(I,P)&&y(E,P,I[P]);if(A)for(var P of A(I))h.call(I,P)&&y(E,P,I[P]);return E},w=(E,I)=>d(E,g(I)),C=(E,I)=>{var P={};for(var R in E)m.call(E,R)&&I.indexOf(R)<0&&(P[R]=E[R]);if(E!=null&&A)for(var R of A(E))I.indexOf(R)<0&&h.call(E,R)&&(P[R]=E[R]);return P},S=({onFinish:E,value:I,streamingStatus:P,cancelIndex:R,loadImage:T,onDynamic:M})=>{const[O,k]=(0,D.useState)(""),[Q,X]=(0,D.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[L,te]=(0,D.useState)(0),[$,J]=(0,D.useState)(!1),q=V=>V.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Y,ne)=>`<mathx data-text="${ne.trim()}">$$${ne.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ee=()=>{J(!0),E==null||E()};(0,D.useEffect)(()=>{constV=T?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function r({open:n=!0,onChange:s,defaultValue:d,placement:g,width:A,height:m,extra:h,onDynamic:y,showExtra:x=!0}){const w=(0,D.useRef)(null),C=(0,D.useRef)(null),[b,S]=(0,D.useState)(d||""),[E,I]=(0,D.useState)(d||""),[P,R]=(0,D.useState)(!!n),[T,M]=(0,D.useState)(1),O={selectOnLineNumbers:!0};(0,D.useEffect)(()=>{n&&(S(d),I(d),R(!0))},[n,d]),(0,D.useEffect)(()=>{b!==""&&(clearTimeout(C.current),C.current=setTimeout(()=>{const Q=document.createElement("iframe");if(Q.style.width="100%",Q.style.height="100%",Q.style.border="0",w.current){w.current.innerHTML="",w.current.appendChild(Q);const X=Q.contentDocument||Q.contentWindow.document;X.open(),X.write(b),X.close()}},1e3))},[n,b]);const k=Q=>{S(Q),s==null||s(Q,E)};return a.createElement(W.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:P,width:x?700:"100%",height:m||"100vh",rootClassName:p.smartWrp,destroyOnClose:!0,onClose:()=>R(!1),extra:x&&a.createElement("div",null,a.createElement(u.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:T,onChange:Q=>M(Q)}),a.createElement(o.Z,{type:"primary",className:"ml20",onClick:()=>c(this,null,function*(){yield y(b,()=>{R(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},a.createElement(e.Z,{className:"h100"},a.createElement(v.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:T===1?"block":"none"}},a.createElement("div",{className:"h100",ref:w})),a.createElement(v.Z,{flex:"1",style:{display:T===2?"block":"none"}},a.createElement(l.ZP,{height:"90vh",value:d,language:"html",theme:"vs",showMiniMap:!1,options:O,onChange:k}))))}var t=r},43276:function(je,pe,B){"use strict";B.d(pe,{Z:function(){return S}});var D=B(59301),W=B(96536),e=B(77596),v=B(93772),p=B(14179),l=B(56102),u={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},o=B(8591),a=B(11611),c=B(35328),i=B(30084),r=B(10787),t=B(50304),n=B(83251),s=Object.defineProperty,d=Object.defineProperties,g=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,y=(E,I,P)=>I in E?s(E,I,{enumerable:!0,configurable:!0,writable:!0,value:P}):E[I]=P,x=(E,I)=>{for(var P in I||(I={}))m.call(I,P)&&y(E,P,I[P]);if(A)for(var P of A(I))h.call(I,P)&&y(E,P,I[P]);return E},w=(E,I)=>d(E,g(I)),C=(E,I)=>{var P={};for(var R in E)m.call(E,R)&&I.indexOf(R)<0&&(P[R]=E[R]);if(E!=null&&A)for(var R of A(E))I.indexOf(R)<0&&h.call(E,R)&&(P[R]=E[R]);return P},S=({onFinish:E,value:I,streamingStatus:P,cancelIndex:R,loadImage:T,onDynamic:M})=>{const[O,k]=(0,D.useState)(""),[Q,X]=(0,D.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[L,te]=(0,D.useState)(0),[$,J]=(0,D.useState)(!1),q=V=>V.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Y,ne)=>`<mathx data-text="${ne.trim()}">$$${ne.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ee=()=>{J(!0),E==null||E()};(0,D.useEffect)(()=>{constV=T?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function n({open:r=!0,onChange:u,defaultValue:p,placement:m,width:E,height:v,extra:h,onDynamic:A,showExtra:B=!0}){const x=(0,a.useRef)(null),w=(0,a.useRef)(null),[C,D]=(0,a.useState)(p||""),[S,F]=(0,a.useState)(p||""),[T,O]=(0,a.useState)(!!r),[M,N]=(0,a.useState)(1),I={selectOnLineNumbers:!0};(0,a.useEffect)(()=>{r&&(D(p),F(p),O(!0))},[r,p]),(0,a.useEffect)(()=>{C!==""&&(clearTimeout(w.current),w.current=setTimeout(()=>{const L=document.createElement("iframe");if(L.style.width="100%",L.style.height="100%",L.style.border="0",x.current){x.current.innerHTML="",x.current.appendChild(L);const V=L.contentDocument||L.contentWindow.document;V.open(),V.write(C),V.close()}},1e3))},[r,C]);const k=L=>{D(L),u==null||u(L,S)};return o.createElement(P.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:T,width:B?700:"100%",height:v||"100vh",rootClassName:y.smartWrp,destroyOnClose:!0,onClose:()=>O(!1),extra:B&&o.createElement("div",null,o.createElement(d.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:M,onChange:L=>N(L)}),o.createElement(l.Z,{type:"primary",className:"ml20",onClick:()=>s(this,null,function*(){yield A(C,()=>{O(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},o.createElement(e.Z,{className:"h100"},o.createElement(g.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:M===1?"block":"none"}},o.createElement("div",{className:"h100",ref:x})),o.createElement(g.Z,{flex:"1",style:{display:M===2?"block":"none"}},o.createElement(c.ZP,{height:"90vh",value:p,language:"html",theme:"vs",showMiniMap:!1,options:I,onChange:k}))))}var t=n},43276:function(Ye,ye,b){"use strict";b.d(ye,{Z:function(){return D}});var a=b(59301),P=b(72719),e=b(77596),g=b(93772),y=b(14179),c=b(56102),d={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},l=b(8591),o=b(11611),s=b(35328),i=b(30084),n=b(10787),t=b(50304),r=b(83251),u=Object.defineProperty,p=Object.defineProperties,m=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,A=(S,F,T)=>F in S?u(S,F,{enumerable:!0,configurable:!0,writable:!0,value:T}):S[F]=T,B=(S,F)=>{for(var T in F||(F={}))v.call(F,T)&&A(S,T,F[T]);if(E)for(var T of E(F))h.call(F,T)&&A(S,T,F[T]);return S},x=(S,F)=>p(S,m(F)),w=(S,F)=>{var T={};for(var O in S)v.call(S,O)&&F.indexOf(O)<0&&(T[O]=S[O]);if(S!=null&&E)for(var O of E(S))F.indexOf(O)<0&&h.call(S,O)&&(T[O]=S[O]);return T},D=({onFinish:S,value:F,streamingStatus:T,cancelIndex:O,loadImage:M,onDynamic:N})=>{const[I,k]=(0,a.useState)(""),[L,V]=(0,a.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[_,ee]=(0,a.useState)(0),[$,X]=(0,a.useState)(!1),q=G=>G.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Q,ie)=>`<mathx data-text="${ie.trim()}">$$${ie.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),te=()=>{X(!0),S==null||S()};(0,a.useEffect)(()=>{constG=M?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function n({open:r=!0,onChange:u,defaultValue:p,placement:m,width:E,height:v,extra:h,onDynamic:A,showExtra:B=!0}){const x=(0,a.useRef)(null),w=(0,a.useRef)(null),[C,D]=(0,a.useState)(p||""),[S,F]=(0,a.useState)(p||""),[T,O]=(0,a.useState)(!!r),[M,N]=(0,a.useState)(1),I={selectOnLineNumbers:!0};(0,a.useEffect)(()=>{r&&(D(p),F(p),O(!0))},[r,p]),(0,a.useEffect)(()=>{C!==""&&(clearTimeout(w.current),w.current=setTimeout(()=>{const L=document.createElement("iframe");if(L.style.width="100%",L.style.height="100%",L.style.border="0",x.current){x.current.innerHTML="",x.current.appendChild(L);const V=L.contentDocument||L.contentWindow.document;V.open(),V.write(C),V.close()}},1e3))},[r,C]);const k=L=>{D(L),u==null||u(L,S)};return o.createElement(P.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:T,width:B?700:"100%",height:v||"100vh",rootClassName:y.smartWrp,destroyOnClose:!0,onClose:()=>O(!1),extra:B&&o.createElement("div",null,o.createElement(d.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:M,onChange:L=>N(L)}),o.createElement(l.Z,{type:"primary",className:"ml20",onClick:()=>s(this,null,function*(){yield A(C,()=>{O(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},o.createElement(e.Z,{className:"h100"},o.createElement(g.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:M===1?"block":"none"}},o.createElement("div",{className:"h100",ref:x})),o.createElement(g.Z,{flex:"1",style:{display:M===2?"block":"none"}},o.createElement(c.ZP,{height:"90vh",value:p,language:"html",theme:"vs",showMiniMap:!1,options:I,onChange:k}))))}var t=n},43276:function(Ye,ye,b){"use strict";b.d(ye,{Z:function(){return D}});var a=b(59301),P=b(96536),e=b(77596),g=b(93772),y=b(14179),c=b(56102),d={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},l=b(8591),o=b(11611),s=b(35328),i=b(30084),n=b(10787),t=b(50304),r=b(83251),u=Object.defineProperty,p=Object.defineProperties,m=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,A=(S,F,T)=>F in S?u(S,F,{enumerable:!0,configurable:!0,writable:!0,value:T}):S[F]=T,B=(S,F)=>{for(var T in F||(F={}))v.call(F,T)&&A(S,T,F[T]);if(E)for(var T of E(F))h.call(F,T)&&A(S,T,F[T]);return S},x=(S,F)=>p(S,m(F)),w=(S,F)=>{var T={};for(var O in S)v.call(S,O)&&F.indexOf(O)<0&&(T[O]=S[O]);if(S!=null&&E)for(var O of E(S))F.indexOf(O)<0&&h.call(S,O)&&(T[O]=S[O]);return T},D=({onFinish:S,value:F,streamingStatus:T,cancelIndex:O,loadImage:M,onDynamic:N})=>{const[I,k]=(0,a.useState)(""),[L,V]=(0,a.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[_,ee]=(0,a.useState)(0),[$,X]=(0,a.useState)(!1),q=G=>G.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Q,ie)=>`<mathx data-text="${ie.trim()}">$$${ie.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),te=()=>{X(!0),S==null||S()};(0,a.useEffect)(()=>{constG=M?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Me({open:y=!0,onChange:we,defaultValue:Fe,placement:G,width:de,height:se,extra:at,onDynamic:Pe,showExtra:rt=!0}){const $e=(0,e.useRef)(null),lt=(0,e.useRef)(null),[Ke,ze]=(0,e.useState)(Fe||""),[Ze,ve]=(0,e.useState)(Fe||""),[Be,L]=(0,e.useState)(!!y),[T,ge]=(0,e.useState)(1),k={selectOnLineNumbers:!0};(0,e.useEffect)(()=>{y&&(ze(Fe),ve(Fe),L(!0))},[y,Fe]),(0,e.useEffect)(()=>{Ke!==""&&(clearTimeout(lt.current),lt.current=setTimeout(()=>{const ot=document.createElement("iframe");if(ot.style.width="100%",ot.style.height="100%",ot.style.border="0",$e.current){$e.current.innerHTML="",$e.current.appendChild(ot);const Wt=ot.contentDocument||ot.contentWindow.document;Wt.open(),Wt.write(Ke),Wt.close()}},1e3))},[y,Ke]);const Je=ot=>{ze(ot),we==null||we(ot,Ze)};return w.createElement(g.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Be,width:rt?700:"100%",height:se||"100vh",rootClassName:_.smartWrp,destroyOnClose:!0,onClose:()=>L(!1),extra:rt&&w.createElement("div",null,w.createElement(J.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:T,onChange:ot=>ge(ot)}),w.createElement(pe.Z,{type:"primary",className:"ml20",onClick:()=>b(this,null,function*(){yield Pe(Ke,()=>{L(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},w.createElement(f.Z,{className:"h100"},w.createElement(ue.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:T===1?"block":"none"}},w.createElement("div",{className:"h100",ref:$e})),w.createElement(ue.Z,{flex:"1",style:{display:T===2?"block":"none"}},w.createElement(B.ZP,{height:"90vh",value:Fe,language:"html",theme:"vs",showMiniMap:!1,options:k,onChange:Je}))))}var te=Me},43276:function(_e,gt,t){"use strict";t.d(gt,{Z:function(){return ze}});var e=t(59301),g=t(72719),f=t(77596),ue=t(93772),_=t(14179),B=t(56102),J={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},pe=t(8591),w=t(11611),b=t(35328),oe=t(30084),Me=t(10787),te=t(50304),y=t(83251),we=Object.defineProperty,Fe=Object.defineProperties,G=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Pe=(Ze,ve,Be)=>ve in Ze?we(Ze,ve,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ze[ve]=Be,rt=(Ze,ve)=>{for(var Be in ve||(ve={}))se.call(ve,Be)&&Pe(Ze,Be,ve[Be]);if(de)for(var Be of de(ve))at.call(ve,Be)&&Pe(Ze,Be,ve[Be]);return Ze},$e=(Ze,ve)=>Fe(Ze,G(ve)),lt=(Ze,ve)=>{var Be={};for(var L in Ze)se.call(Ze,L)&&ve.indexOf(L)<0&&(Be[L]=Ze[L]);if(Ze!=null&&de)for(var L of de(Ze))ve.indexOf(L)<0&&at.call(Ze,L)&&(Be[L]=Ze[L]);return Be},ze=({onFinish:Ze,value:ve,streamingStatus:Be,cancelIndex:L,loadImage:T,onDynamic:ge})=>{const[k,Je]=(0,e.useState)(""),[ot,Wt]=(0,e.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Tt,ke]=(0,e.useState)(0),[Pt,nt]=(0,e.useState)(!1),yt=H=>H.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(De,At)=>`<mathx data-text="${At.trim()}">$$${At.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ee=()=>{nt(!0),Ze==null||Ze()};(0,e.useEffect)(()=>{constH=T?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Me({open:y=!0,onChange:we,defaultValue:Fe,placement:G,width:de,height:se,extra:at,onDynamic:Pe,showExtra:rt=!0}){const $e=(0,e.useRef)(null),lt=(0,e.useRef)(null),[Ke,ze]=(0,e.useState)(Fe||""),[Ze,ve]=(0,e.useState)(Fe||""),[Be,L]=(0,e.useState)(!!y),[T,ge]=(0,e.useState)(1),k={selectOnLineNumbers:!0};(0,e.useEffect)(()=>{y&&(ze(Fe),ve(Fe),L(!0))},[y,Fe]),(0,e.useEffect)(()=>{Ke!==""&&(clearTimeout(lt.current),lt.current=setTimeout(()=>{const ot=document.createElement("iframe");if(ot.style.width="100%",ot.style.height="100%",ot.style.border="0",$e.current){$e.current.innerHTML="",$e.current.appendChild(ot);const Wt=ot.contentDocument||ot.contentWindow.document;Wt.open(),Wt.write(Ke),Wt.close()}},1e3))},[y,Ke]);const Je=ot=>{ze(ot),we==null||we(ot,Ze)};return w.createElement(g.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Be,width:rt?700:"100%",height:se||"100vh",rootClassName:_.smartWrp,destroyOnClose:!0,onClose:()=>L(!1),extra:rt&&w.createElement("div",null,w.createElement(J.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:T,onChange:ot=>ge(ot)}),w.createElement(pe.Z,{type:"primary",className:"ml20",onClick:()=>b(this,null,function*(){yield Pe(Ke,()=>{L(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},w.createElement(f.Z,{className:"h100"},w.createElement(ue.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:T===1?"block":"none"}},w.createElement("div",{className:"h100",ref:$e})),w.createElement(ue.Z,{flex:"1",style:{display:T===2?"block":"none"}},w.createElement(B.ZP,{height:"90vh",value:Fe,language:"html",theme:"vs",showMiniMap:!1,options:k,onChange:Je}))))}var te=Me},43276:function(_e,gt,t){"use strict";t.d(gt,{Z:function(){return ze}});var e=t(59301),g=t(96536),f=t(77596),ue=t(93772),_=t(14179),B=t(56102),J={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},pe=t(8591),w=t(11611),b=t(35328),oe=t(30084),Me=t(10787),te=t(50304),y=t(83251),we=Object.defineProperty,Fe=Object.defineProperties,G=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Pe=(Ze,ve,Be)=>ve in Ze?we(Ze,ve,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ze[ve]=Be,rt=(Ze,ve)=>{for(var Be in ve||(ve={}))se.call(ve,Be)&&Pe(Ze,Be,ve[Be]);if(de)for(var Be of de(ve))at.call(ve,Be)&&Pe(Ze,Be,ve[Be]);return Ze},$e=(Ze,ve)=>Fe(Ze,G(ve)),lt=(Ze,ve)=>{var Be={};for(var L in Ze)se.call(Ze,L)&&ve.indexOf(L)<0&&(Be[L]=Ze[L]);if(Ze!=null&&de)for(var L of de(Ze))ve.indexOf(L)<0&&at.call(Ze,L)&&(Be[L]=Ze[L]);return Be},ze=({onFinish:Ze,value:ve,streamingStatus:Be,cancelIndex:L,loadImage:T,onDynamic:ge})=>{const[k,Je]=(0,e.useState)(""),[ot,Wt]=(0,e.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Tt,ke]=(0,e.useState)(0),[Pt,nt]=(0,e.useState)(!1),yt=H=>H.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(De,At)=>`<mathx data-text="${At.trim()}">$$${At.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ee=()=>{nt(!0),Ze==null||Ze()};(0,e.useEffect)(()=>{constH=T?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Ct({open:Ie=!0,onChange:te,defaultValue:ne,placement:he,width:le,height:ge,extra:ve,onDynamic:Me,showExtra:Ne=!0}){const Ce=(0,Se.useRef)(null),ze=(0,Se.useRef)(null),[$e,st]=(0,Se.useState)(ne||""),[Qe,it]=(0,Se.useState)(ne||""),[Ge,It]=(0,Se.useState)(!!Ie),[St,en]=(0,Se.useState)(1),on={selectOnLineNumbers:!0};(0,Se.useEffect)(()=>{Ie&&(st(ne),it(ne),It(!0))},[Ie,ne]),(0,Se.useEffect)(()=>{$e!==""&&(clearTimeout(ze.current),ze.current=setTimeout(()=>{const En=document.createElement("iframe");if(En.style.width="100%",En.style.height="100%",En.style.border="0",Ce.current){Ce.current.innerHTML="",Ce.current.appendChild(En);const mn=En.contentDocument||En.contentWindow.document;mn.open(),mn.write($e),mn.close()}},1e3))},[Ie,$e]);const $t=En=>{st(En),te==null||te(En,Qe)};return pt.createElement(Re.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Ge,width:Ne?700:"100%",height:ge||"100vh",rootClassName:tt.smartWrp,destroyOnClose:!0,onClose:()=>It(!1),extra:Ne&&pt.createElement("div",null,pt.createElement(Te.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:St,onChange:En=>en(En)}),pt.createElement(Dt.Z,{type:"primary",className:"ml20",onClick:()=>qe(this,null,function*(){yield Me($e,()=>{It(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},pt.createElement(ft.Z,{className:"h100"},pt.createElement(jt.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:St===1?"block":"none"}},pt.createElement("div",{className:"h100",ref:Ce})),pt.createElement(jt.Z,{flex:"1",style:{display:St===2?"block":"none"}},pt.createElement(Lt.ZP,{height:"90vh",value:ne,language:"html",theme:"vs",showMiniMap:!1,options:on,onChange:$t}))))}var zt=Ct},43276:function(wn,Tn,Pe){"use strict";Pe.d(Tn,{Z:function(){return st}});var Se=Pe(59301),Re=Pe(72719),ft=Pe(77596),jt=Pe(93772),tt=Pe(14179),Lt=Pe(56102),Te={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Dt=Pe(8591),pt=Pe(11611),qe=Pe(35328),mt=Pe(30084),Ct=Pe(10787),zt=Pe(50304),Ie=Pe(83251),te=Object.defineProperty,ne=Object.defineProperties,he=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Me=(Qe,it,Ge)=>it in Qe?te(Qe,it,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Qe[it]=Ge,Ne=(Qe,it)=>{for(var Ge in it||(it={}))ge.call(it,Ge)&&Me(Qe,Ge,it[Ge]);if(le)for(var Ge of le(it))ve.call(it,Ge)&&Me(Qe,Ge,it[Ge]);return Qe},Ce=(Qe,it)=>ne(Qe,he(it)),ze=(Qe,it)=>{var Ge={};for(var It in Qe)ge.call(Qe,It)&&it.indexOf(It)<0&&(Ge[It]=Qe[It]);if(Qe!=null&&le)for(var It of le(Qe))it.indexOf(It)<0&&ve.call(Qe,It)&&(Ge[It]=Qe[It]);return Ge},st=({onFinish:Qe,value:it,streamingStatus:Ge,cancelIndex:It,loadImage:St,onDynamic:en})=>{const[on,$t]=(0,Se.useState)(""),[En,mn]=(0,Se.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Pt,_e]=(0,Se.useState)(0),[an,hi]=(0,Se.useState)(!1),_n=Kn=>Kn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ci,In)=>`<mathx data-text="${In.trim()}">$$${In.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Nt=()=>{hi(!0),Qe==null||Qe()};(0,Se.useEffect)(()=>{constKn=St?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Ct({open:Ie=!0,onChange:te,defaultValue:ne,placement:he,width:le,height:ge,extra:ve,onDynamic:Me,showExtra:Ne=!0}){const Ce=(0,Se.useRef)(null),ze=(0,Se.useRef)(null),[$e,st]=(0,Se.useState)(ne||""),[Qe,it]=(0,Se.useState)(ne||""),[Ge,It]=(0,Se.useState)(!!Ie),[St,en]=(0,Se.useState)(1),on={selectOnLineNumbers:!0};(0,Se.useEffect)(()=>{Ie&&(st(ne),it(ne),It(!0))},[Ie,ne]),(0,Se.useEffect)(()=>{$e!==""&&(clearTimeout(ze.current),ze.current=setTimeout(()=>{const En=document.createElement("iframe");if(En.style.width="100%",En.style.height="100%",En.style.border="0",Ce.current){Ce.current.innerHTML="",Ce.current.appendChild(En);const mn=En.contentDocument||En.contentWindow.document;mn.open(),mn.write($e),mn.close()}},1e3))},[Ie,$e]);const $t=En=>{st(En),te==null||te(En,Qe)};return pt.createElement(Re.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Ge,width:Ne?700:"100%",height:ge||"100vh",rootClassName:tt.smartWrp,destroyOnClose:!0,onClose:()=>It(!1),extra:Ne&&pt.createElement("div",null,pt.createElement(Te.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:St,onChange:En=>en(En)}),pt.createElement(Dt.Z,{type:"primary",className:"ml20",onClick:()=>qe(this,null,function*(){yield Me($e,()=>{It(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},pt.createElement(ft.Z,{className:"h100"},pt.createElement(jt.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:St===1?"block":"none"}},pt.createElement("div",{className:"h100",ref:Ce})),pt.createElement(jt.Z,{flex:"1",style:{display:St===2?"block":"none"}},pt.createElement(Lt.ZP,{height:"90vh",value:ne,language:"html",theme:"vs",showMiniMap:!1,options:on,onChange:$t}))))}var zt=Ct},43276:function(wn,Tn,Pe){"use strict";Pe.d(Tn,{Z:function(){return st}});var Se=Pe(59301),Re=Pe(96536),ft=Pe(77596),jt=Pe(93772),tt=Pe(14179),Lt=Pe(56102),Te={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Dt=Pe(8591),pt=Pe(11611),qe=Pe(35328),mt=Pe(30084),Ct=Pe(10787),zt=Pe(50304),Ie=Pe(83251),te=Object.defineProperty,ne=Object.defineProperties,he=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Me=(Qe,it,Ge)=>it in Qe?te(Qe,it,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Qe[it]=Ge,Ne=(Qe,it)=>{for(var Ge in it||(it={}))ge.call(it,Ge)&&Me(Qe,Ge,it[Ge]);if(le)for(var Ge of le(it))ve.call(it,Ge)&&Me(Qe,Ge,it[Ge]);return Qe},Ce=(Qe,it)=>ne(Qe,he(it)),ze=(Qe,it)=>{var Ge={};for(var It in Qe)ge.call(Qe,It)&&it.indexOf(It)<0&&(Ge[It]=Qe[It]);if(Qe!=null&&le)for(var It of le(Qe))it.indexOf(It)<0&&ve.call(Qe,It)&&(Ge[It]=Qe[It]);return Ge},st=({onFinish:Qe,value:it,streamingStatus:Ge,cancelIndex:It,loadImage:St,onDynamic:en})=>{const[on,$t]=(0,Se.useState)(""),[En,mn]=(0,Se.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Pt,_e]=(0,Se.useState)(0),[an,hi]=(0,Se.useState)(!1),_n=Kn=>Kn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ci,In)=>`<mathx data-text="${In.trim()}">$$${In.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Nt=()=>{hi(!0),Qe==null||Qe()};(0,Se.useEffect)(()=>{constKn=St?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function xe({open:Tt=!0,onChange:et,defaultValue:nt,placement:ht,width:lt,height:gt,extra:yt,onDynamic:Pt,showExtra:kt=!0}){const It=(0,mt.useRef)(null),Rt=(0,mt.useRef)(null),[te,ue]=(0,mt.useState)(nt||""),[Xt,ce]=(0,mt.useState)(nt||""),[Zt,Re]=(0,mt.useState)(!!Tt),[ve,We]=(0,mt.useState)(1),De={selectOnLineNumbers:!0};(0,mt.useEffect)(()=>{Tt&&(ue(nt),ce(nt),Re(!0))},[Tt,nt]),(0,mt.useEffect)(()=>{te!==""&&(clearTimeout(Rt.current),Rt.current=setTimeout(()=>{const xn=document.createElement("iframe");if(xn.style.width="100%",xn.style.height="100%",xn.style.border="0",It.current){It.current.innerHTML="",It.current.appendChild(xn);const wn=xn.contentDocument||xn.contentWindow.document;wn.open(),wn.write(te),wn.close()}},1e3))},[Tt,te]);const Xe=xn=>{ue(xn),et==null||et(xn,Xt)};return fe.createElement(_t.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Zt,width:kt?700:"100%",height:gt||"100vh",rootClassName:Qt.smartWrp,destroyOnClose:!0,onClose:()=>Re(!1),extra:kt&&fe.createElement("div",null,fe.createElement(Dt.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:ve,onChange:xn=>We(xn)}),fe.createElement(Ne.Z,{type:"primary",className:"ml20",onClick:()=>Vt(this,null,function*(){yield Pt(te,()=>{Re(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},fe.createElement(re.Z,{className:"h100"},fe.createElement(be.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:ve===1?"block":"none"}},fe.createElement("div",{className:"h100",ref:It})),fe.createElement(be.Z,{flex:"1",style:{display:ve===2?"block":"none"}},fe.createElement(Pe.ZP,{height:"90vh",value:nt,language:"html",theme:"vs",showMiniMap:!1,options:De,onChange:Xe}))))}var Ze=xe},43276:function(fn,Ln,Mt){"use strict";Mt.d(Ln,{Z:function(){return ue}});var mt=Mt(59301),_t=Mt(72719),re=Mt(77596),be=Mt(93772),Qt=Mt(14179),Pe=Mt(56102),Dt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ne=Mt(8591),fe=Mt(11611),Vt=Mt(35328),le=Mt(30084),xe=Mt(10787),Ze=Mt(50304),Tt=Mt(83251),et=Object.defineProperty,nt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Pt=(Xt,ce,Zt)=>ce in Xt?et(Xt,ce,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):Xt[ce]=Zt,kt=(Xt,ce)=>{for(var Zt in ce||(ce={}))gt.call(ce,Zt)&&Pt(Xt,Zt,ce[Zt]);if(lt)for(var Zt of lt(ce))yt.call(ce,Zt)&&Pt(Xt,Zt,ce[Zt]);return Xt},It=(Xt,ce)=>nt(Xt,ht(ce)),Rt=(Xt,ce)=>{var Zt={};for(var Re in Xt)gt.call(Xt,Re)&&ce.indexOf(Re)<0&&(Zt[Re]=Xt[Re]);if(Xt!=null&<)for(var Re of lt(Xt))ce.indexOf(Re)<0&&yt.call(Xt,Re)&&(Zt[Re]=Xt[Re]);return Zt},ue=({onFinish:Xt,value:ce,streamingStatus:Zt,cancelIndex:Re,loadImage:ve,onDynamic:We})=>{const[De,Xe]=(0,mt.useState)(""),[xn,wn]=(0,mt.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Jt,Ot]=(0,mt.useState)(0),[Ae,$e]=(0,mt.useState)(!1),dn=kn=>kn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Wn,ln)=>`<mathx data-text="${ln.trim()}">$$${ln.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ce=()=>{$e(!0),Xt==null||Xt()};(0,mt.useEffect)(()=>{constkn=ve?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function xe({open:Tt=!0,onChange:et,defaultValue:nt,placement:ht,width:lt,height:gt,extra:yt,onDynamic:Pt,showExtra:kt=!0}){const It=(0,mt.useRef)(null),Rt=(0,mt.useRef)(null),[te,ue]=(0,mt.useState)(nt||""),[Xt,ce]=(0,mt.useState)(nt||""),[Zt,Re]=(0,mt.useState)(!!Tt),[ve,We]=(0,mt.useState)(1),De={selectOnLineNumbers:!0};(0,mt.useEffect)(()=>{Tt&&(ue(nt),ce(nt),Re(!0))},[Tt,nt]),(0,mt.useEffect)(()=>{te!==""&&(clearTimeout(Rt.current),Rt.current=setTimeout(()=>{const xn=document.createElement("iframe");if(xn.style.width="100%",xn.style.height="100%",xn.style.border="0",It.current){It.current.innerHTML="",It.current.appendChild(xn);const wn=xn.contentDocument||xn.contentWindow.document;wn.open(),wn.write(te),wn.close()}},1e3))},[Tt,te]);const Xe=xn=>{ue(xn),et==null||et(xn,Xt)};return fe.createElement(_t.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Zt,width:kt?700:"100%",height:gt||"100vh",rootClassName:Qt.smartWrp,destroyOnClose:!0,onClose:()=>Re(!1),extra:kt&&fe.createElement("div",null,fe.createElement(Dt.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:ve,onChange:xn=>We(xn)}),fe.createElement(Ne.Z,{type:"primary",className:"ml20",onClick:()=>Vt(this,null,function*(){yield Pt(te,()=>{Re(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},fe.createElement(re.Z,{className:"h100"},fe.createElement(be.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:ve===1?"block":"none"}},fe.createElement("div",{className:"h100",ref:It})),fe.createElement(be.Z,{flex:"1",style:{display:ve===2?"block":"none"}},fe.createElement(Pe.ZP,{height:"90vh",value:nt,language:"html",theme:"vs",showMiniMap:!1,options:De,onChange:Xe}))))}var Ze=xe},43276:function(fn,Ln,Mt){"use strict";Mt.d(Ln,{Z:function(){return ue}});var mt=Mt(59301),_t=Mt(96536),re=Mt(77596),be=Mt(93772),Qt=Mt(14179),Pe=Mt(56102),Dt={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ne=Mt(8591),fe=Mt(11611),Vt=Mt(35328),le=Mt(30084),xe=Mt(10787),Ze=Mt(50304),Tt=Mt(83251),et=Object.defineProperty,nt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Pt=(Xt,ce,Zt)=>ce in Xt?et(Xt,ce,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):Xt[ce]=Zt,kt=(Xt,ce)=>{for(var Zt in ce||(ce={}))gt.call(ce,Zt)&&Pt(Xt,Zt,ce[Zt]);if(lt)for(var Zt of lt(ce))yt.call(ce,Zt)&&Pt(Xt,Zt,ce[Zt]);return Xt},It=(Xt,ce)=>nt(Xt,ht(ce)),Rt=(Xt,ce)=>{var Zt={};for(var Re in Xt)gt.call(Xt,Re)&&ce.indexOf(Re)<0&&(Zt[Re]=Xt[Re]);if(Xt!=null&<)for(var Re of lt(Xt))ce.indexOf(Re)<0&&yt.call(Xt,Re)&&(Zt[Re]=Xt[Re]);return Zt},ue=({onFinish:Xt,value:ce,streamingStatus:Zt,cancelIndex:Re,loadImage:ve,onDynamic:We})=>{const[De,Xe]=(0,mt.useState)(""),[xn,wn]=(0,mt.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Jt,Ot]=(0,mt.useState)(0),[Ae,$e]=(0,mt.useState)(!1),dn=kn=>kn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Wn,ln)=>`<mathx data-text="${ln.trim()}">$$${ln.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ce=()=>{$e(!0),Xt==null||Xt()};(0,mt.useEffect)(()=>{constkn=ve?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function W({open:Z=!0,onChange:Me,defaultValue:k,placement:U,width:G,height:ne,extra:K,onDynamic:Be,showExtra:oe=!0}){const g=(0,e.useRef)(null),Ie=(0,e.useRef)(null),[Re,mt]=(0,e.useState)(k||""),[Ee,je]=(0,e.useState)(k||""),[ye,H]=(0,e.useState)(!!Z),[ie,Pe]=(0,e.useState)(1),x={selectOnLineNumbers:!0};(0,e.useEffect)(()=>{Z&&(mt(k),je(k),H(!0))},[Z,k]),(0,e.useEffect)(()=>{Re!==""&&(clearTimeout(Ie.current),Ie.current=setTimeout(()=>{const z=document.createElement("iframe");if(z.style.width="100%",z.style.height="100%",z.style.border="0",g.current){g.current.innerHTML="",g.current.appendChild(z);const be=z.contentDocument||z.contentWindow.document;be.open(),be.write(Re),be.close()}},1e3))},[Z,Re]);const ce=z=>{mt(z),Me==null||Me(z,Ee)};return I.createElement(h.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ye,width:oe?700:"100%",height:ne||"100vh",rootClassName:$.smartWrp,destroyOnClose:!0,onClose:()=>H(!1),extra:oe&&I.createElement("div",null,I.createElement(X.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:ie,onChange:z=>Pe(z)}),I.createElement(Le.Z,{type:"primary",className:"ml20",onClick:()=>M(this,null,function*(){yield Be(Re,()=>{H(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},I.createElement(_.Z,{className:"h100"},I.createElement(D.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:ie===1?"block":"none"}},I.createElement("div",{className:"h100",ref:g})),I.createElement(D.Z,{flex:"1",style:{display:ie===2?"block":"none"}},I.createElement(ge.ZP,{height:"90vh",value:k,language:"html",theme:"vs",showMiniMap:!1,options:x,onChange:ce}))))}var J=W},43276:function(_n,Et,o){o.d(Et,{Z:function(){return mt}});var e=o(59301),h=o(72719),_=o(77596),D=o(93772),$=o(14179),ge=o(56102),X={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Le=o(8591),I=o(11611),M=o(35328),R=o(30084),W=o(10787),J=o(50304),Z=o(83251),Me=Object.defineProperty,k=Object.defineProperties,U=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,Be=(Ee,je,ye)=>je in Ee?Me(Ee,je,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Ee[je]=ye,oe=(Ee,je)=>{for(var ye in je||(je={}))ne.call(je,ye)&&Be(Ee,ye,je[ye]);if(G)for(var ye of G(je))K.call(je,ye)&&Be(Ee,ye,je[ye]);return Ee},g=(Ee,je)=>k(Ee,U(je)),Ie=(Ee,je)=>{var ye={};for(var H in Ee)ne.call(Ee,H)&&je.indexOf(H)<0&&(ye[H]=Ee[H]);if(Ee!=null&&G)for(var H of G(Ee))je.indexOf(H)<0&&K.call(Ee,H)&&(ye[H]=Ee[H]);return ye},mt=({onFinish:Ee,value:je,streamingStatus:ye,cancelIndex:H,loadImage:ie,onDynamic:Pe})=>{const[x,ce]=(0,e.useState)(""),[z,be]=(0,e.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ae,Kt]=(0,e.useState)(0),[ln,Qe]=(0,e.useState)(!1),ft=Lt=>Lt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Mt,At)=>`<mathx data-text="${At.trim()}">$$${At.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),he=()=>{Qe(!0),Ee==null||Ee()};(0,e.useEffect)(()=>{constLt=ie?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function W({open:Z=!0,onChange:Me,defaultValue:k,placement:U,width:G,height:ne,extra:K,onDynamic:Be,showExtra:oe=!0}){const g=(0,e.useRef)(null),Ie=(0,e.useRef)(null),[Re,mt]=(0,e.useState)(k||""),[Ee,je]=(0,e.useState)(k||""),[ye,H]=(0,e.useState)(!!Z),[ie,Pe]=(0,e.useState)(1),x={selectOnLineNumbers:!0};(0,e.useEffect)(()=>{Z&&(mt(k),je(k),H(!0))},[Z,k]),(0,e.useEffect)(()=>{Re!==""&&(clearTimeout(Ie.current),Ie.current=setTimeout(()=>{const z=document.createElement("iframe");if(z.style.width="100%",z.style.height="100%",z.style.border="0",g.current){g.current.innerHTML="",g.current.appendChild(z);const be=z.contentDocument||z.contentWindow.document;be.open(),be.write(Re),be.close()}},1e3))},[Z,Re]);const ce=z=>{mt(z),Me==null||Me(z,Ee)};return I.createElement(h.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ye,width:oe?700:"100%",height:ne||"100vh",rootClassName:$.smartWrp,destroyOnClose:!0,onClose:()=>H(!1),extra:oe&&I.createElement("div",null,I.createElement(X.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:ie,onChange:z=>Pe(z)}),I.createElement(Le.Z,{type:"primary",className:"ml20",onClick:()=>M(this,null,function*(){yield Be(Re,()=>{H(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},I.createElement(_.Z,{className:"h100"},I.createElement(D.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:ie===1?"block":"none"}},I.createElement("div",{className:"h100",ref:g})),I.createElement(D.Z,{flex:"1",style:{display:ie===2?"block":"none"}},I.createElement(ge.ZP,{height:"90vh",value:k,language:"html",theme:"vs",showMiniMap:!1,options:x,onChange:ce}))))}var J=W},43276:function(_n,Et,o){o.d(Et,{Z:function(){return mt}});var e=o(59301),h=o(96536),_=o(77596),D=o(93772),$=o(14179),ge=o(56102),X={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Le=o(8591),I=o(11611),M=o(35328),R=o(30084),W=o(10787),J=o(50304),Z=o(83251),Me=Object.defineProperty,k=Object.defineProperties,U=Object.getOwnPropertyDescriptors,G=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,Be=(Ee,je,ye)=>je in Ee?Me(Ee,je,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Ee[je]=ye,oe=(Ee,je)=>{for(var ye in je||(je={}))ne.call(je,ye)&&Be(Ee,ye,je[ye]);if(G)for(var ye of G(je))K.call(je,ye)&&Be(Ee,ye,je[ye]);return Ee},g=(Ee,je)=>k(Ee,U(je)),Ie=(Ee,je)=>{var ye={};for(var H in Ee)ne.call(Ee,H)&&je.indexOf(H)<0&&(ye[H]=Ee[H]);if(Ee!=null&&G)for(var H of G(Ee))je.indexOf(H)<0&&K.call(Ee,H)&&(ye[H]=Ee[H]);return ye},mt=({onFinish:Ee,value:je,streamingStatus:ye,cancelIndex:H,loadImage:ie,onDynamic:Pe})=>{const[x,ce]=(0,e.useState)(""),[z,be]=(0,e.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ae,Kt]=(0,e.useState)(0),[ln,Qe]=(0,e.useState)(!1),ft=Lt=>Lt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Mt,At)=>`<mathx data-text="${At.trim()}">$$${At.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),he=()=>{Qe(!0),Ee==null||Ee()};(0,e.useEffect)(()=>{constLt=ie?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function r({open:o=!0,onChange:A,defaultValue:c,placement:p,width:h,height:g,extra:d,onDynamic:y,showExtra:F=!0}){const C=(0,B.useRef)(null),b=(0,B.useRef)(null),[E,D]=(0,B.useState)(c||""),[S,I]=(0,B.useState)(c||""),[M,K]=(0,B.useState)(!!o),[k,X]=(0,B.useState)(1),T={selectOnLineNumbers:!0};(0,B.useEffect)(()=>{o&&(D(c),I(c),K(!0))},[o,c]),(0,B.useEffect)(()=>{E!==""&&(clearTimeout(b.current),b.current=setTimeout(()=>{const Z=document.createElement("iframe");if(Z.style.width="100%",Z.style.height="100%",Z.style.border="0",C.current){C.current.innerHTML="",C.current.appendChild(Z);const ee=Z.contentDocument||Z.contentWindow.document;ee.open(),ee.write(E),ee.close()}},1e3))},[o,E]);const W=Z=>{D(Z),A==null||A(Z,S)};return a.createElement(J.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:M,width:F?700:"100%",height:g||"100vh",rootClassName:v.smartWrp,destroyOnClose:!0,onClose:()=>K(!1),extra:F&&a.createElement("div",null,a.createElement(u.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:k,onChange:Z=>X(Z)}),a.createElement(s.Z,{type:"primary",className:"ml20",onClick:()=>n(this,null,function*(){yield y(E,()=>{K(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},a.createElement(e.Z,{className:"h100"},a.createElement(m.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:k===1?"block":"none"}},a.createElement("div",{className:"h100",ref:C})),a.createElement(m.Z,{flex:"1",style:{display:k===2?"block":"none"}},a.createElement(l.ZP,{height:"90vh",value:c,language:"html",theme:"vs",showMiniMap:!1,options:T,onChange:W}))))}var t=r},43276:function(Ot,De,w){"use strict";w.d(De,{Z:function(){return D}});var B=w(59301),J=w(72719),e=w(77596),m=w(93772),v=w(14179),l=w(56102),u={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},s=w(8591),a=w(11611),n=w(35328),i=w(30084),r=w(10787),t=w(50304),o=w(83251),A=Object.defineProperty,c=Object.defineProperties,p=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=(S,I,M)=>I in S?A(S,I,{enumerable:!0,configurable:!0,writable:!0,value:M}):S[I]=M,F=(S,I)=>{for(var M in I||(I={}))g.call(I,M)&&y(S,M,I[M]);if(h)for(var M of h(I))d.call(I,M)&&y(S,M,I[M]);return S},C=(S,I)=>c(S,p(I)),b=(S,I)=>{var M={};for(var K in S)g.call(S,K)&&I.indexOf(K)<0&&(M[K]=S[K]);if(S!=null&&h)for(var K of h(S))I.indexOf(K)<0&&d.call(S,K)&&(M[K]=S[K]);return M},D=({onFinish:S,value:I,streamingStatus:M,cancelIndex:K,loadImage:k,onDynamic:X})=>{const[T,W]=(0,B.useState)(""),[Z,ee]=(0,B.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[N,Ae]=(0,B.useState)(0),[ue,ae]=(0,B.useState)(!1),ye=ve=>ve.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(be,Fe)=>`<mathx data-text="${Fe.trim()}">$$${Fe.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ee=()=>{ae(!0),S==null||S()};(0,B.useEffect)(()=>{constve=k?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function r({open:o=!0,onChange:A,defaultValue:c,placement:p,width:h,height:g,extra:d,onDynamic:y,showExtra:F=!0}){const C=(0,B.useRef)(null),b=(0,B.useRef)(null),[E,D]=(0,B.useState)(c||""),[S,I]=(0,B.useState)(c||""),[M,K]=(0,B.useState)(!!o),[k,X]=(0,B.useState)(1),T={selectOnLineNumbers:!0};(0,B.useEffect)(()=>{o&&(D(c),I(c),K(!0))},[o,c]),(0,B.useEffect)(()=>{E!==""&&(clearTimeout(b.current),b.current=setTimeout(()=>{const Z=document.createElement("iframe");if(Z.style.width="100%",Z.style.height="100%",Z.style.border="0",C.current){C.current.innerHTML="",C.current.appendChild(Z);const ee=Z.contentDocument||Z.contentWindow.document;ee.open(),ee.write(E),ee.close()}},1e3))},[o,E]);const W=Z=>{D(Z),A==null||A(Z,S)};return a.createElement(J.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:M,width:F?700:"100%",height:g||"100vh",rootClassName:v.smartWrp,destroyOnClose:!0,onClose:()=>K(!1),extra:F&&a.createElement("div",null,a.createElement(u.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:k,onChange:Z=>X(Z)}),a.createElement(s.Z,{type:"primary",className:"ml20",onClick:()=>n(this,null,function*(){yield y(E,()=>{K(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},a.createElement(e.Z,{className:"h100"},a.createElement(m.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:k===1?"block":"none"}},a.createElement("div",{className:"h100",ref:C})),a.createElement(m.Z,{flex:"1",style:{display:k===2?"block":"none"}},a.createElement(l.ZP,{height:"90vh",value:c,language:"html",theme:"vs",showMiniMap:!1,options:T,onChange:W}))))}var t=r},43276:function(Ot,De,w){"use strict";w.d(De,{Z:function(){return D}});var B=w(59301),J=w(96536),e=w(77596),m=w(93772),v=w(14179),l=w(56102),u={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},s=w(8591),a=w(11611),n=w(35328),i=w(30084),r=w(10787),t=w(50304),o=w(83251),A=Object.defineProperty,c=Object.defineProperties,p=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=(S,I,M)=>I in S?A(S,I,{enumerable:!0,configurable:!0,writable:!0,value:M}):S[I]=M,F=(S,I)=>{for(var M in I||(I={}))g.call(I,M)&&y(S,M,I[M]);if(h)for(var M of h(I))d.call(I,M)&&y(S,M,I[M]);return S},C=(S,I)=>c(S,p(I)),b=(S,I)=>{var M={};for(var K in S)g.call(S,K)&&I.indexOf(K)<0&&(M[K]=S[K]);if(S!=null&&h)for(var K of h(S))I.indexOf(K)<0&&d.call(S,K)&&(M[K]=S[K]);return M},D=({onFinish:S,value:I,streamingStatus:M,cancelIndex:K,loadImage:k,onDynamic:X})=>{const[T,W]=(0,B.useState)(""),[Z,ee]=(0,B.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[N,Ae]=(0,B.useState)(0),[ue,ae]=(0,B.useState)(!1),ye=ve=>ve.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(be,Fe)=>`<mathx data-text="${Fe.trim()}">$$${Fe.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ee=()=>{ae(!0),S==null||S()};(0,B.useEffect)(()=>{constve=k?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function r({open:n=!0,onChange:a,defaultValue:u,placement:p,width:h,height:m,extra:d,onDynamic:y,showExtra:C=!0}){const E=(0,O.useRef)(null),w=(0,O.useRef)(null),[b,x]=(0,O.useState)(u||""),[B,_]=(0,O.useState)(u||""),[M,z]=(0,O.useState)(!!n),[F,W]=(0,O.useState)(1),U={selectOnLineNumbers:!0};(0,O.useEffect)(()=>{n&&(x(u),_(u),z(!0))},[n,u]),(0,O.useEffect)(()=>{b!==""&&(clearTimeout(w.current),w.current=setTimeout(()=>{const q=document.createElement("iframe");if(q.style.width="100%",q.style.height="100%",q.style.border="0",E.current){E.current.innerHTML="",E.current.appendChild(q);const ne=q.contentDocument||q.contentWindow.document;ne.open(),ne.write(b),ne.close()}},1e3))},[n,b]);const Q=q=>{x(q),a==null||a(q,B)};return l.createElement(Ae.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:M,width:C?700:"100%",height:m||"100vh",rootClassName:g.smartWrp,destroyOnClose:!0,onClose:()=>z(!1),extra:C&&l.createElement("div",null,l.createElement(c.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:F,onChange:q=>W(q)}),l.createElement(i.Z,{type:"primary",className:"ml20",onClick:()=>s(this,null,function*(){yield y(b,()=>{z(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},l.createElement(e.Z,{className:"h100"},l.createElement(v.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:F===1?"block":"none"}},l.createElement("div",{className:"h100",ref:E})),l.createElement(v.Z,{flex:"1",style:{display:F===2?"block":"none"}},l.createElement(A.ZP,{height:"90vh",value:u,language:"html",theme:"vs",showMiniMap:!1,options:U,onChange:Q}))))}var t=r},43276:function(Xt,st,D){"use strict";D.d(st,{Z:function(){return x}});var O=D(59301),Ae=D(72719),e=D(77596),v=D(93772),g=D(14179),A=D(56102),c={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},i=D(8591),l=D(11611),s=D(35328),o=D(30084),r=D(10787),t=D(50304),n=D(83251),a=Object.defineProperty,u=Object.defineProperties,p=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=(B,_,M)=>_ in B?a(B,_,{enumerable:!0,configurable:!0,writable:!0,value:M}):B[_]=M,C=(B,_)=>{for(var M in _||(_={}))m.call(_,M)&&y(B,M,_[M]);if(h)for(var M of h(_))d.call(_,M)&&y(B,M,_[M]);return B},E=(B,_)=>u(B,p(_)),w=(B,_)=>{var M={};for(var z in B)m.call(B,z)&&_.indexOf(z)<0&&(M[z]=B[z]);if(B!=null&&h)for(var z of h(B))_.indexOf(z)<0&&d.call(B,z)&&(M[z]=B[z]);return M},x=({onFinish:B,value:_,streamingStatus:M,cancelIndex:z,loadImage:F,onDynamic:W})=>{const[U,Q]=(0,O.useState)(""),[q,ne]=(0,O.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[R,ae]=(0,O.useState)(0),[ue,he]=(0,O.useState)(!1),ye=Be=>Be.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ve,Fe)=>`<mathx data-text="${Fe.trim()}">$$${Fe.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ee=()=>{he(!0),B==null||B()};(0,O.useEffect)(()=>{constBe=F?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function r({open:n=!0,onChange:a,defaultValue:u,placement:p,width:h,height:m,extra:d,onDynamic:y,showExtra:C=!0}){const E=(0,O.useRef)(null),w=(0,O.useRef)(null),[b,x]=(0,O.useState)(u||""),[B,_]=(0,O.useState)(u||""),[M,z]=(0,O.useState)(!!n),[F,W]=(0,O.useState)(1),U={selectOnLineNumbers:!0};(0,O.useEffect)(()=>{n&&(x(u),_(u),z(!0))},[n,u]),(0,O.useEffect)(()=>{b!==""&&(clearTimeout(w.current),w.current=setTimeout(()=>{const q=document.createElement("iframe");if(q.style.width="100%",q.style.height="100%",q.style.border="0",E.current){E.current.innerHTML="",E.current.appendChild(q);const ne=q.contentDocument||q.contentWindow.document;ne.open(),ne.write(b),ne.close()}},1e3))},[n,b]);const Q=q=>{x(q),a==null||a(q,B)};return l.createElement(Ae.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:M,width:C?700:"100%",height:m||"100vh",rootClassName:g.smartWrp,destroyOnClose:!0,onClose:()=>z(!1),extra:C&&l.createElement("div",null,l.createElement(c.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:F,onChange:q=>W(q)}),l.createElement(i.Z,{type:"primary",className:"ml20",onClick:()=>s(this,null,function*(){yield y(b,()=>{z(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},l.createElement(e.Z,{className:"h100"},l.createElement(v.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:F===1?"block":"none"}},l.createElement("div",{className:"h100",ref:E})),l.createElement(v.Z,{flex:"1",style:{display:F===2?"block":"none"}},l.createElement(A.ZP,{height:"90vh",value:u,language:"html",theme:"vs",showMiniMap:!1,options:U,onChange:Q}))))}var t=r},43276:function(Xt,st,D){"use strict";D.d(st,{Z:function(){return x}});var O=D(59301),Ae=D(96536),e=D(77596),v=D(93772),g=D(14179),A=D(56102),c={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},i=D(8591),l=D(11611),s=D(35328),o=D(30084),r=D(10787),t=D(50304),n=D(83251),a=Object.defineProperty,u=Object.defineProperties,p=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,y=(B,_,M)=>_ in B?a(B,_,{enumerable:!0,configurable:!0,writable:!0,value:M}):B[_]=M,C=(B,_)=>{for(var M in _||(_={}))m.call(_,M)&&y(B,M,_[M]);if(h)for(var M of h(_))d.call(_,M)&&y(B,M,_[M]);return B},E=(B,_)=>u(B,p(_)),w=(B,_)=>{var M={};for(var z in B)m.call(B,z)&&_.indexOf(z)<0&&(M[z]=B[z]);if(B!=null&&h)for(var z of h(B))_.indexOf(z)<0&&d.call(B,z)&&(M[z]=B[z]);return M},x=({onFinish:B,value:_,streamingStatus:M,cancelIndex:z,loadImage:F,onDynamic:W})=>{const[U,Q]=(0,O.useState)(""),[q,ne]=(0,O.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[R,ae]=(0,O.useState)(0),[ue,he]=(0,O.useState)(!1),ye=Be=>Be.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ve,Fe)=>`<mathx data-text="${Fe.trim()}">$$${Fe.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ee=()=>{he(!0),B==null||B()};(0,O.useEffect)(()=>{constBe=F?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function r({open:n=!0,onChange:s,defaultValue:d,placement:p,width:m,height:v,extra:h,onDynamic:b,showExtra:C=!0}){const S=(0,D.useRef)(null),w=(0,D.useRef)(null),[E,A]=(0,D.useState)(d||""),[_,x]=(0,D.useState)(d||""),[I,R]=(0,D.useState)(!!n),[M,B]=(0,D.useState)(1),O={selectOnLineNumbers:!0};(0,D.useEffect)(()=>{n&&(A(d),x(d),R(!0))},[n,d]),(0,D.useEffect)(()=>{E!==""&&(clearTimeout(w.current),w.current=setTimeout(()=>{const L=document.createElement("iframe");if(L.style.width="100%",L.style.height="100%",L.style.border="0",S.current){S.current.innerHTML="",S.current.appendChild(L);const G=L.contentDocument||L.contentWindow.document;G.open(),G.write(E),G.close()}},1e3))},[n,E]);const N=L=>{A(L),s==null||s(L,_)};return a.createElement(z.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:I,width:C?700:"100%",height:v||"100vh",rootClassName:g.smartWrp,destroyOnClose:!0,onClose:()=>R(!1),extra:C&&a.createElement("div",null,a.createElement(u.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:M,onChange:L=>B(L)}),a.createElement(o.Z,{type:"primary",className:"ml20",onClick:()=>c(this,null,function*(){yield b(E,()=>{R(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},a.createElement(e.Z,{className:"h100"},a.createElement(y.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:M===1?"block":"none"}},a.createElement("div",{className:"h100",ref:S})),a.createElement(y.Z,{flex:"1",style:{display:M===2?"block":"none"}},a.createElement(l.ZP,{height:"90vh",value:d,language:"html",theme:"vs",showMiniMap:!1,options:O,onChange:N}))))}var t=r},43276:function(Te,pe,T){"use strict";T.d(pe,{Z:function(){return A}});var D=T(59301),z=T(72719),e=T(77596),y=T(93772),g=T(14179),l=T(56102),u={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},o=T(8591),a=T(11611),c=T(35328),i=T(30084),r=T(10787),t=T(50304),n=T(83251),s=Object.defineProperty,d=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,b=(_,x,I)=>x in _?s(_,x,{enumerable:!0,configurable:!0,writable:!0,value:I}):_[x]=I,C=(_,x)=>{for(var I in x||(x={}))v.call(x,I)&&b(_,I,x[I]);if(m)for(var I of m(x))h.call(x,I)&&b(_,I,x[I]);return _},S=(_,x)=>d(_,p(x)),w=(_,x)=>{var I={};for(var R in _)v.call(_,R)&&x.indexOf(R)<0&&(I[R]=_[R]);if(_!=null&&m)for(var R of m(_))x.indexOf(R)<0&&h.call(_,R)&&(I[R]=_[R]);return I},A=({onFinish:_,value:x,streamingStatus:I,cancelIndex:R,loadImage:M,onDynamic:B})=>{const[O,N]=(0,D.useState)(""),[L,G]=(0,D.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[P,te]=(0,D.useState)(0),[$,q]=(0,D.useState)(!1),K=Y=>Y.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Z,ne)=>`<mathx data-text="${ne.trim()}">$$${ne.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ee=()=>{q(!0),_==null||_()};(0,D.useEffect)(()=>{constY=M?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function r({open:n=!0,onChange:s,defaultValue:d,placement:p,width:m,height:v,extra:h,onDynamic:b,showExtra:C=!0}){const S=(0,D.useRef)(null),w=(0,D.useRef)(null),[E,A]=(0,D.useState)(d||""),[_,x]=(0,D.useState)(d||""),[I,R]=(0,D.useState)(!!n),[M,B]=(0,D.useState)(1),O={selectOnLineNumbers:!0};(0,D.useEffect)(()=>{n&&(A(d),x(d),R(!0))},[n,d]),(0,D.useEffect)(()=>{E!==""&&(clearTimeout(w.current),w.current=setTimeout(()=>{const L=document.createElement("iframe");if(L.style.width="100%",L.style.height="100%",L.style.border="0",S.current){S.current.innerHTML="",S.current.appendChild(L);const G=L.contentDocument||L.contentWindow.document;G.open(),G.write(E),G.close()}},1e3))},[n,E]);const N=L=>{A(L),s==null||s(L,_)};return a.createElement(z.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:I,width:C?700:"100%",height:v||"100vh",rootClassName:g.smartWrp,destroyOnClose:!0,onClose:()=>R(!1),extra:C&&a.createElement("div",null,a.createElement(u.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:M,onChange:L=>B(L)}),a.createElement(o.Z,{type:"primary",className:"ml20",onClick:()=>c(this,null,function*(){yield b(E,()=>{R(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},a.createElement(e.Z,{className:"h100"},a.createElement(y.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:M===1?"block":"none"}},a.createElement("div",{className:"h100",ref:S})),a.createElement(y.Z,{flex:"1",style:{display:M===2?"block":"none"}},a.createElement(l.ZP,{height:"90vh",value:d,language:"html",theme:"vs",showMiniMap:!1,options:O,onChange:N}))))}var t=r},43276:function(Te,pe,T){"use strict";T.d(pe,{Z:function(){return A}});var D=T(59301),z=T(96536),e=T(77596),y=T(93772),g=T(14179),l=T(56102),u={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},o=T(8591),a=T(11611),c=T(35328),i=T(30084),r=T(10787),t=T(50304),n=T(83251),s=Object.defineProperty,d=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,b=(_,x,I)=>x in _?s(_,x,{enumerable:!0,configurable:!0,writable:!0,value:I}):_[x]=I,C=(_,x)=>{for(var I in x||(x={}))v.call(x,I)&&b(_,I,x[I]);if(m)for(var I of m(x))h.call(x,I)&&b(_,I,x[I]);return _},S=(_,x)=>d(_,p(x)),w=(_,x)=>{var I={};for(var R in _)v.call(_,R)&&x.indexOf(R)<0&&(I[R]=_[R]);if(_!=null&&m)for(var R of m(_))x.indexOf(R)<0&&h.call(_,R)&&(I[R]=_[R]);return I},A=({onFinish:_,value:x,streamingStatus:I,cancelIndex:R,loadImage:M,onDynamic:B})=>{const[O,N]=(0,D.useState)(""),[L,G]=(0,D.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[P,te]=(0,D.useState)(0),[$,q]=(0,D.useState)(!1),K=Y=>Y.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Z,ne)=>`<mathx data-text="${ne.trim()}">$$${ne.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ee=()=>{q(!0),_==null||_()};(0,D.useEffect)(()=>{constY=M?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function r({open:n=!0,onChange:s,defaultValue:d,placement:p,width:m,height:v,extra:h,onDynamic:b,showExtra:A=!0}){const _=(0,D.useRef)(null),w=(0,D.useRef)(null),[E,C]=(0,D.useState)(d||""),[S,x]=(0,D.useState)(d||""),[I,B]=(0,D.useState)(!!n),[M,R]=(0,D.useState)(1),O={selectOnLineNumbers:!0};(0,D.useEffect)(()=>{n&&(C(d),x(d),B(!0))},[n,d]),(0,D.useEffect)(()=>{E!==""&&(clearTimeout(w.current),w.current=setTimeout(()=>{const L=document.createElement("iframe");if(L.style.width="100%",L.style.height="100%",L.style.border="0",_.current){_.current.innerHTML="",_.current.appendChild(L);const G=L.contentDocument||L.contentWindow.document;G.open(),G.write(E),G.close()}},1e3))},[n,E]);const N=L=>{C(L),s==null||s(L,S)};return a.createElement(z.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:I,width:A?700:"100%",height:v||"100vh",rootClassName:g.smartWrp,destroyOnClose:!0,onClose:()=>B(!1),extra:A&&a.createElement("div",null,a.createElement(u.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:M,onChange:L=>R(L)}),a.createElement(o.Z,{type:"primary",className:"ml20",onClick:()=>c(this,null,function*(){yield b(E,()=>{B(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},a.createElement(e.Z,{className:"h100"},a.createElement(y.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:M===1?"block":"none"}},a.createElement("div",{className:"h100",ref:_})),a.createElement(y.Z,{flex:"1",style:{display:M===2?"block":"none"}},a.createElement(l.ZP,{height:"90vh",value:d,language:"html",theme:"vs",showMiniMap:!1,options:O,onChange:N}))))}var t=r},43276:function(Te,pe,T){"use strict";T.d(pe,{Z:function(){return C}});var D=T(59301),z=T(72719),e=T(77596),y=T(93772),g=T(14179),l=T(56102),u={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},o=T(8591),a=T(11611),c=T(35328),i=T(30084),r=T(10787),t=T(50304),n=T(83251),s=Object.defineProperty,d=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,b=(S,x,I)=>x in S?s(S,x,{enumerable:!0,configurable:!0,writable:!0,value:I}):S[x]=I,A=(S,x)=>{for(var I in x||(x={}))v.call(x,I)&&b(S,I,x[I]);if(m)for(var I of m(x))h.call(x,I)&&b(S,I,x[I]);return S},_=(S,x)=>d(S,p(x)),w=(S,x)=>{var I={};for(var B in S)v.call(S,B)&&x.indexOf(B)<0&&(I[B]=S[B]);if(S!=null&&m)for(var B of m(S))x.indexOf(B)<0&&h.call(S,B)&&(I[B]=S[B]);return I},C=({onFinish:S,value:x,streamingStatus:I,cancelIndex:B,loadImage:M,onDynamic:R})=>{const[O,N]=(0,D.useState)(""),[L,G]=(0,D.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[P,te]=(0,D.useState)(0),[$,q]=(0,D.useState)(!1),X=Y=>Y.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Z,ne)=>`<mathx data-text="${ne.trim()}">$$${ne.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ee=()=>{q(!0),S==null||S()};(0,D.useEffect)(()=>{constY=M?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function r({open:n=!0,onChange:s,defaultValue:d,placement:p,width:m,height:v,extra:h,onDynamic:b,showExtra:A=!0}){const _=(0,D.useRef)(null),w=(0,D.useRef)(null),[E,C]=(0,D.useState)(d||""),[S,x]=(0,D.useState)(d||""),[I,B]=(0,D.useState)(!!n),[M,R]=(0,D.useState)(1),O={selectOnLineNumbers:!0};(0,D.useEffect)(()=>{n&&(C(d),x(d),B(!0))},[n,d]),(0,D.useEffect)(()=>{E!==""&&(clearTimeout(w.current),w.current=setTimeout(()=>{const L=document.createElement("iframe");if(L.style.width="100%",L.style.height="100%",L.style.border="0",_.current){_.current.innerHTML="",_.current.appendChild(L);const G=L.contentDocument||L.contentWindow.document;G.open(),G.write(E),G.close()}},1e3))},[n,E]);const N=L=>{C(L),s==null||s(L,S)};return a.createElement(z.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:I,width:A?700:"100%",height:v||"100vh",rootClassName:g.smartWrp,destroyOnClose:!0,onClose:()=>B(!1),extra:A&&a.createElement("div",null,a.createElement(u.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:M,onChange:L=>R(L)}),a.createElement(o.Z,{type:"primary",className:"ml20",onClick:()=>c(this,null,function*(){yield b(E,()=>{B(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},a.createElement(e.Z,{className:"h100"},a.createElement(y.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:M===1?"block":"none"}},a.createElement("div",{className:"h100",ref:_})),a.createElement(y.Z,{flex:"1",style:{display:M===2?"block":"none"}},a.createElement(l.ZP,{height:"90vh",value:d,language:"html",theme:"vs",showMiniMap:!1,options:O,onChange:N}))))}var t=r},43276:function(Te,pe,T){"use strict";T.d(pe,{Z:function(){return C}});var D=T(59301),z=T(96536),e=T(77596),y=T(93772),g=T(14179),l=T(56102),u={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},o=T(8591),a=T(11611),c=T(35328),i=T(30084),r=T(10787),t=T(50304),n=T(83251),s=Object.defineProperty,d=Object.defineProperties,p=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,b=(S,x,I)=>x in S?s(S,x,{enumerable:!0,configurable:!0,writable:!0,value:I}):S[x]=I,A=(S,x)=>{for(var I in x||(x={}))v.call(x,I)&&b(S,I,x[I]);if(m)for(var I of m(x))h.call(x,I)&&b(S,I,x[I]);return S},_=(S,x)=>d(S,p(x)),w=(S,x)=>{var I={};for(var B in S)v.call(S,B)&&x.indexOf(B)<0&&(I[B]=S[B]);if(S!=null&&m)for(var B of m(S))x.indexOf(B)<0&&h.call(S,B)&&(I[B]=S[B]);return I},C=({onFinish:S,value:x,streamingStatus:I,cancelIndex:B,loadImage:M,onDynamic:R})=>{const[O,N]=(0,D.useState)(""),[L,G]=(0,D.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[P,te]=(0,D.useState)(0),[$,q]=(0,D.useState)(!1),X=Y=>Y.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Z,ne)=>`<mathx data-text="${ne.trim()}">$$${ne.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ee=()=>{q(!0),S==null||S()};(0,D.useEffect)(()=>{constY=M?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function M({open:A=!0,onChange:ie,defaultValue:I,placement:S,width:Q,height:re,extra:$,onDynamic:ce,showExtra:k=!0}){const J=(0,n.useRef)(null),ve=(0,n.useRef)(null),[De,at]=(0,n.useState)(I||""),[Oe,_e]=(0,n.useState)(I||""),[pe,F]=(0,n.useState)(!!A),[Qe,Se]=(0,n.useState)(1),C={selectOnLineNumbers:!0};(0,n.useEffect)(()=>{A&&(at(I),_e(I),F(!0))},[A,I]),(0,n.useEffect)(()=>{De!==""&&(clearTimeout(ve.current),ve.current=setTimeout(()=>{const se=document.createElement("iframe");if(se.style.width="100%",se.style.height="100%",se.style.border="0",J.current){J.current.innerHTML="",J.current.appendChild(se);const fe=se.contentDocument||se.contentWindow.document;fe.open(),fe.write(De),fe.close()}},1e3))},[A,De]);const me=se=>{at(se),ie==null||ie(se,Oe)};return T.createElement(p.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:pe,width:k?700:"100%",height:re||"100vh",rootClassName:L.smartWrp,destroyOnClose:!0,onClose:()=>F(!1),extra:k&&T.createElement("div",null,T.createElement(ue.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Qe,onChange:se=>Se(se)}),T.createElement(Ae.Z,{type:"primary",className:"ml20",onClick:()=>N(this,null,function*(){yield ce(De,()=>{F(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},T.createElement(D.Z,{className:"h100"},T.createElement(x.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Qe===1?"block":"none"}},T.createElement("div",{className:"h100",ref:J})),T.createElement(x.Z,{flex:"1",style:{display:Qe===2?"block":"none"}},T.createElement(ne.ZP,{height:"90vh",value:I,language:"html",theme:"vs",showMiniMap:!1,options:C,onChange:me}))))}var j=M},43276:function($t,nt,l){l.d(nt,{Z:function(){return at}});var n=l(59301),p=l(72719),D=l(77596),x=l(93772),L=l(14179),ne=l(56102),ue={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ae=l(8591),T=l(11611),N=l(35328),w=l(30084),M=l(10787),j=l(50304),A=l(83251),ie=Object.defineProperty,I=Object.defineProperties,S=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,ce=(Oe,_e,pe)=>_e in Oe?ie(Oe,_e,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Oe[_e]=pe,k=(Oe,_e)=>{for(var pe in _e||(_e={}))re.call(_e,pe)&&ce(Oe,pe,_e[pe]);if(Q)for(var pe of Q(_e))$.call(_e,pe)&&ce(Oe,pe,_e[pe]);return Oe},J=(Oe,_e)=>I(Oe,S(_e)),ve=(Oe,_e)=>{var pe={};for(var F in Oe)re.call(Oe,F)&&_e.indexOf(F)<0&&(pe[F]=Oe[F]);if(Oe!=null&&Q)for(var F of Q(Oe))_e.indexOf(F)<0&&$.call(Oe,F)&&(pe[F]=Oe[F]);return pe},at=({onFinish:Oe,value:_e,streamingStatus:pe,cancelIndex:F,loadImage:Qe,onDynamic:Se})=>{const[C,me]=(0,n.useState)(""),[se,fe]=(0,n.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[z,pt]=(0,n.useState)(0),[Lt,Ge]=(0,n.useState)(!1),Et=ot=>ot.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Re,qe)=>`<mathx data-text="${qe.trim()}">$$${qe.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Pe=()=>{Ge(!0),Oe==null||Oe()};(0,n.useEffect)(()=>{constot=Qe?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function M({open:A=!0,onChange:ie,defaultValue:I,placement:S,width:Q,height:re,extra:$,onDynamic:ce,showExtra:k=!0}){const J=(0,n.useRef)(null),ve=(0,n.useRef)(null),[De,at]=(0,n.useState)(I||""),[Oe,_e]=(0,n.useState)(I||""),[pe,F]=(0,n.useState)(!!A),[Qe,Se]=(0,n.useState)(1),C={selectOnLineNumbers:!0};(0,n.useEffect)(()=>{A&&(at(I),_e(I),F(!0))},[A,I]),(0,n.useEffect)(()=>{De!==""&&(clearTimeout(ve.current),ve.current=setTimeout(()=>{const se=document.createElement("iframe");if(se.style.width="100%",se.style.height="100%",se.style.border="0",J.current){J.current.innerHTML="",J.current.appendChild(se);const fe=se.contentDocument||se.contentWindow.document;fe.open(),fe.write(De),fe.close()}},1e3))},[A,De]);const me=se=>{at(se),ie==null||ie(se,Oe)};return T.createElement(p.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:pe,width:k?700:"100%",height:re||"100vh",rootClassName:L.smartWrp,destroyOnClose:!0,onClose:()=>F(!1),extra:k&&T.createElement("div",null,T.createElement(ue.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Qe,onChange:se=>Se(se)}),T.createElement(Ae.Z,{type:"primary",className:"ml20",onClick:()=>N(this,null,function*(){yield ce(De,()=>{F(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},T.createElement(D.Z,{className:"h100"},T.createElement(x.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Qe===1?"block":"none"}},T.createElement("div",{className:"h100",ref:J})),T.createElement(x.Z,{flex:"1",style:{display:Qe===2?"block":"none"}},T.createElement(ne.ZP,{height:"90vh",value:I,language:"html",theme:"vs",showMiniMap:!1,options:C,onChange:me}))))}var j=M},43276:function($t,nt,l){l.d(nt,{Z:function(){return at}});var n=l(59301),p=l(96536),D=l(77596),x=l(93772),L=l(14179),ne=l(56102),ue={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ae=l(8591),T=l(11611),N=l(35328),w=l(30084),M=l(10787),j=l(50304),A=l(83251),ie=Object.defineProperty,I=Object.defineProperties,S=Object.getOwnPropertyDescriptors,Q=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,ce=(Oe,_e,pe)=>_e in Oe?ie(Oe,_e,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Oe[_e]=pe,k=(Oe,_e)=>{for(var pe in _e||(_e={}))re.call(_e,pe)&&ce(Oe,pe,_e[pe]);if(Q)for(var pe of Q(_e))$.call(_e,pe)&&ce(Oe,pe,_e[pe]);return Oe},J=(Oe,_e)=>I(Oe,S(_e)),ve=(Oe,_e)=>{var pe={};for(var F in Oe)re.call(Oe,F)&&_e.indexOf(F)<0&&(pe[F]=Oe[F]);if(Oe!=null&&Q)for(var F of Q(Oe))_e.indexOf(F)<0&&$.call(Oe,F)&&(pe[F]=Oe[F]);return pe},at=({onFinish:Oe,value:_e,streamingStatus:pe,cancelIndex:F,loadImage:Qe,onDynamic:Se})=>{const[C,me]=(0,n.useState)(""),[se,fe]=(0,n.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[z,pt]=(0,n.useState)(0),[Lt,Ge]=(0,n.useState)(!1),Et=ot=>ot.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Re,qe)=>`<mathx data-text="${qe.trim()}">$$${qe.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Pe=()=>{Ge(!0),Oe==null||Oe()};(0,n.useEffect)(()=>{constot=Qe?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function f({open:W=!0,onChange:O,defaultValue:N,placement:Q,width:ee,height:ve,extra:Ze,onDynamic:Y,showExtra:j=!0}){const v=(0,e.useRef)(null),q=(0,e.useRef)(null),[K,Z]=(0,e.useState)(N||""),[B,S]=(0,e.useState)(N||""),[g,ne]=(0,e.useState)(!!W),[oe,Ke]=(0,e.useState)(1),I={selectOnLineNumbers:!0};(0,e.useEffect)(()=>{W&&(Z(N),S(N),ne(!0))},[W,N]),(0,e.useEffect)(()=>{K!==""&&(clearTimeout(q.current),q.current=setTimeout(()=>{const Me=document.createElement("iframe");if(Me.style.width="100%",Me.style.height="100%",Me.style.border="0",v.current){v.current.innerHTML="",v.current.appendChild(Me);const Oe=Me.contentDocument||Me.contentWindow.document;Oe.open(),Oe.write(K),Oe.close()}},1e3))},[W,K]);const ie=Me=>{Z(Me),O==null||O(Me,B)};return C.createElement(n.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:g,width:j?700:"100%",height:ve||"100vh",rootClassName:E.smartWrp,destroyOnClose:!0,onClose:()=>ne(!1),extra:j&&C.createElement("div",null,C.createElement(r.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:oe,onChange:Me=>Ke(Me)}),C.createElement(J.Z,{type:"primary",className:"ml20",onClick:()=>i(this,null,function*(){yield Y(K,()=>{ne(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},C.createElement(b.Z,{className:"h100"},C.createElement(R.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:oe===1?"block":"none"}},C.createElement("div",{className:"h100",ref:v})),C.createElement(R.Z,{flex:"1",style:{display:oe===2?"block":"none"}},C.createElement(H.ZP,{height:"90vh",value:N,language:"html",theme:"vs",showMiniMap:!1,options:I,onChange:ie}))))}var G=f},43276:function(Dt,We,t){t.d(We,{Z:function(){return Z}});var e=t(59301),n=t(72719),b=t(77596),R=t(93772),E=t(14179),H=t(56102),r={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},J=t(8591),C=t(11611),i=t(35328),D=t(30084),f=t(10787),G=t(50304),W=t(83251),O=Object.defineProperty,N=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Y=(B,S,g)=>S in B?O(B,S,{enumerable:!0,configurable:!0,writable:!0,value:g}):B[S]=g,j=(B,S)=>{for(var g in S||(S={}))ve.call(S,g)&&Y(B,g,S[g]);if(ee)for(var g of ee(S))Ze.call(S,g)&&Y(B,g,S[g]);return B},v=(B,S)=>N(B,Q(S)),q=(B,S)=>{var g={};for(var ne in B)ve.call(B,ne)&&S.indexOf(ne)<0&&(g[ne]=B[ne]);if(B!=null&&ee)for(var ne of ee(B))S.indexOf(ne)<0&&Ze.call(B,ne)&&(g[ne]=B[ne]);return g},Z=({onFinish:B,value:S,streamingStatus:g,cancelIndex:ne,loadImage:oe,onDynamic:Ke})=>{const[I,ie]=(0,e.useState)(""),[Me,Oe]=(0,e.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[mt,Je]=(0,e.useState)(0),[Se,we]=(0,e.useState)(!1),pe=$e=>$e.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ze,je)=>`<mathx data-text="${je.trim()}">$$${je.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ne=()=>{we(!0),B==null||B()};(0,e.useEffect)(()=>{const$e=oe?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function f({open:W=!0,onChange:O,defaultValue:N,placement:Q,width:ee,height:ve,extra:Ze,onDynamic:Y,showExtra:j=!0}){const v=(0,e.useRef)(null),q=(0,e.useRef)(null),[K,Z]=(0,e.useState)(N||""),[B,S]=(0,e.useState)(N||""),[g,ne]=(0,e.useState)(!!W),[oe,Ke]=(0,e.useState)(1),I={selectOnLineNumbers:!0};(0,e.useEffect)(()=>{W&&(Z(N),S(N),ne(!0))},[W,N]),(0,e.useEffect)(()=>{K!==""&&(clearTimeout(q.current),q.current=setTimeout(()=>{const Me=document.createElement("iframe");if(Me.style.width="100%",Me.style.height="100%",Me.style.border="0",v.current){v.current.innerHTML="",v.current.appendChild(Me);const Oe=Me.contentDocument||Me.contentWindow.document;Oe.open(),Oe.write(K),Oe.close()}},1e3))},[W,K]);const ie=Me=>{Z(Me),O==null||O(Me,B)};return C.createElement(n.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:g,width:j?700:"100%",height:ve||"100vh",rootClassName:E.smartWrp,destroyOnClose:!0,onClose:()=>ne(!1),extra:j&&C.createElement("div",null,C.createElement(r.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:oe,onChange:Me=>Ke(Me)}),C.createElement(J.Z,{type:"primary",className:"ml20",onClick:()=>i(this,null,function*(){yield Y(K,()=>{ne(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},C.createElement(b.Z,{className:"h100"},C.createElement(R.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:oe===1?"block":"none"}},C.createElement("div",{className:"h100",ref:v})),C.createElement(R.Z,{flex:"1",style:{display:oe===2?"block":"none"}},C.createElement(H.ZP,{height:"90vh",value:N,language:"html",theme:"vs",showMiniMap:!1,options:I,onChange:ie}))))}var G=f},43276:function(Dt,We,t){t.d(We,{Z:function(){return Z}});var e=t(59301),n=t(96536),b=t(77596),R=t(93772),E=t(14179),H=t(56102),r={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},J=t(8591),C=t(11611),i=t(35328),D=t(30084),f=t(10787),G=t(50304),W=t(83251),O=Object.defineProperty,N=Object.defineProperties,Q=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Y=(B,S,g)=>S in B?O(B,S,{enumerable:!0,configurable:!0,writable:!0,value:g}):B[S]=g,j=(B,S)=>{for(var g in S||(S={}))ve.call(S,g)&&Y(B,g,S[g]);if(ee)for(var g of ee(S))Ze.call(S,g)&&Y(B,g,S[g]);return B},v=(B,S)=>N(B,Q(S)),q=(B,S)=>{var g={};for(var ne in B)ve.call(B,ne)&&S.indexOf(ne)<0&&(g[ne]=B[ne]);if(B!=null&&ee)for(var ne of ee(B))S.indexOf(ne)<0&&Ze.call(B,ne)&&(g[ne]=B[ne]);return g},Z=({onFinish:B,value:S,streamingStatus:g,cancelIndex:ne,loadImage:oe,onDynamic:Ke})=>{const[I,ie]=(0,e.useState)(""),[Me,Oe]=(0,e.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[mt,Je]=(0,e.useState)(0),[Se,we]=(0,e.useState)(!1),pe=$e=>$e.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ze,je)=>`<mathx data-text="${je.trim()}">$$${je.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ne=()=>{we(!0),B==null||B()};(0,e.useEffect)(()=>{const$e=oe?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Ae({open:h=!0,onChange:Ze,defaultValue:y,placement:Z,width:le,height:E,extra:ce,onDynamic:q,showExtra:ve=!0}){const D=(0,e.useRef)(null),_=(0,e.useRef)(null),[Q,ge]=(0,e.useState)(y||""),[d,Ce]=(0,e.useState)(y||""),[L,G]=(0,e.useState)(!!h),[ie,N]=(0,e.useState)(1),l={selectOnLineNumbers:!0};(0,e.useEffect)(()=>{h&&(ge(y),Ce(y),G(!0))},[h,y]),(0,e.useEffect)(()=>{Q!==""&&(clearTimeout(_.current),_.current=setTimeout(()=>{const b=document.createElement("iframe");if(b.style.width="100%",b.style.height="100%",b.style.border="0",D.current){D.current.innerHTML="",D.current.appendChild(b);const I=b.contentDocument||b.contentWindow.document;I.open(),I.write(Q),I.close()}},1e3))},[h,Q]);const C=b=>{ge(b),Ze==null||Ze(b,d)};return m.createElement(a.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:L,width:ve?700:"100%",height:E||"100vh",rootClassName:f.smartWrp,destroyOnClose:!0,onClose:()=>G(!1),extra:ve&&m.createElement("div",null,m.createElement(x.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:ie,onChange:b=>N(b)}),m.createElement($.Z,{type:"primary",className:"ml20",onClick:()=>O(this,null,function*(){yield q(Q,()=>{G(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},m.createElement(ee.Z,{className:"h100"},m.createElement(W.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:ie===1?"block":"none"}},m.createElement("div",{className:"h100",ref:D})),m.createElement(W.Z,{flex:"1",style:{display:ie===2?"block":"none"}},m.createElement(re.ZP,{height:"90vh",value:y,language:"html",theme:"vs",showMiniMap:!1,options:l,onChange:C}))))}var P=Ae},43276:function(Ot,We,n){n.d(We,{Z:function(){return ge}});var e=n(59301),a=n(72719),ee=n(77596),W=n(93772),f=n(14179),re=n(56102),x={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},$=n(8591),m=n(11611),O=n(35328),ae=n(30084),Ae=n(10787),P=n(50304),h=n(83251),Ze=Object.defineProperty,y=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,q=(d,Ce,L)=>Ce in d?Ze(d,Ce,{enumerable:!0,configurable:!0,writable:!0,value:L}):d[Ce]=L,ve=(d,Ce)=>{for(var L in Ce||(Ce={}))E.call(Ce,L)&&q(d,L,Ce[L]);if(le)for(var L of le(Ce))ce.call(Ce,L)&&q(d,L,Ce[L]);return d},D=(d,Ce)=>y(d,Z(Ce)),_=(d,Ce)=>{var L={};for(var G in d)E.call(d,G)&&Ce.indexOf(G)<0&&(L[G]=d[G]);if(d!=null&&le)for(var G of le(d))Ce.indexOf(G)<0&&ce.call(d,G)&&(L[G]=d[G]);return L},ge=({onFinish:d,value:Ce,streamingStatus:L,cancelIndex:G,loadImage:ie,onDynamic:N})=>{const[l,C]=(0,e.useState)(""),[b,I]=(0,e.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[p,Ye]=(0,e.useState)(0),[Qe,de]=(0,e.useState)(!1),Pe=he=>he.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(X,fe)=>`<mathx data-text="${fe.trim()}">$$${fe.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),me=()=>{de(!0),d==null||d()};(0,e.useEffect)(()=>{consthe=ie?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Ae({open:h=!0,onChange:Ze,defaultValue:y,placement:Z,width:le,height:E,extra:ce,onDynamic:q,showExtra:ve=!0}){const D=(0,e.useRef)(null),_=(0,e.useRef)(null),[Q,ge]=(0,e.useState)(y||""),[d,Ce]=(0,e.useState)(y||""),[L,G]=(0,e.useState)(!!h),[ie,N]=(0,e.useState)(1),l={selectOnLineNumbers:!0};(0,e.useEffect)(()=>{h&&(ge(y),Ce(y),G(!0))},[h,y]),(0,e.useEffect)(()=>{Q!==""&&(clearTimeout(_.current),_.current=setTimeout(()=>{const b=document.createElement("iframe");if(b.style.width="100%",b.style.height="100%",b.style.border="0",D.current){D.current.innerHTML="",D.current.appendChild(b);const I=b.contentDocument||b.contentWindow.document;I.open(),I.write(Q),I.close()}},1e3))},[h,Q]);const C=b=>{ge(b),Ze==null||Ze(b,d)};return m.createElement(a.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:L,width:ve?700:"100%",height:E||"100vh",rootClassName:f.smartWrp,destroyOnClose:!0,onClose:()=>G(!1),extra:ve&&m.createElement("div",null,m.createElement(x.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:ie,onChange:b=>N(b)}),m.createElement($.Z,{type:"primary",className:"ml20",onClick:()=>O(this,null,function*(){yield q(Q,()=>{G(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},m.createElement(ee.Z,{className:"h100"},m.createElement(W.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:ie===1?"block":"none"}},m.createElement("div",{className:"h100",ref:D})),m.createElement(W.Z,{flex:"1",style:{display:ie===2?"block":"none"}},m.createElement(re.ZP,{height:"90vh",value:y,language:"html",theme:"vs",showMiniMap:!1,options:l,onChange:C}))))}var P=Ae},43276:function(Ot,We,n){n.d(We,{Z:function(){return ge}});var e=n(59301),a=n(96536),ee=n(77596),W=n(93772),f=n(14179),re=n(56102),x={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},$=n(8591),m=n(11611),O=n(35328),ae=n(30084),Ae=n(10787),P=n(50304),h=n(83251),Ze=Object.defineProperty,y=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,q=(d,Ce,L)=>Ce in d?Ze(d,Ce,{enumerable:!0,configurable:!0,writable:!0,value:L}):d[Ce]=L,ve=(d,Ce)=>{for(var L in Ce||(Ce={}))E.call(Ce,L)&&q(d,L,Ce[L]);if(le)for(var L of le(Ce))ce.call(Ce,L)&&q(d,L,Ce[L]);return d},D=(d,Ce)=>y(d,Z(Ce)),_=(d,Ce)=>{var L={};for(var G in d)E.call(d,G)&&Ce.indexOf(G)<0&&(L[G]=d[G]);if(d!=null&&le)for(var G of le(d))Ce.indexOf(G)<0&&ce.call(d,G)&&(L[G]=d[G]);return L},ge=({onFinish:d,value:Ce,streamingStatus:L,cancelIndex:G,loadImage:ie,onDynamic:N})=>{const[l,C]=(0,e.useState)(""),[b,I]=(0,e.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[p,Ye]=(0,e.useState)(0),[Qe,de]=(0,e.useState)(!1),Pe=he=>he.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(X,fe)=>`<mathx data-text="${fe.trim()}">$$${fe.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),me=()=>{de(!0),d==null||d()};(0,e.useEffect)(()=>{consthe=ie?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function o({open:a=!0,onChange:d,defaultValue:h,placement:g,width:v,height:y,extra:E,onDynamic:_,showExtra:x=!0}){const A=(0,r.useRef)(null),D=(0,r.useRef)(null),[C,w]=(0,r.useState)(h||""),[S,M]=(0,r.useState)(h||""),[T,z]=(0,r.useState)(!!a),[P,G]=(0,r.useState)(1),k={selectOnLineNumbers:!0};(0,r.useEffect)(()=>{a&&(w(h),M(h),z(!0))},[a,h]),(0,r.useEffect)(()=>{C!==""&&(clearTimeout(D.current),D.current=setTimeout(()=>{const Y=document.createElement("iframe");if(Y.style.width="100%",Y.style.height="100%",Y.style.border="0",A.current){A.current.innerHTML="",A.current.appendChild(Y);const pe=Y.contentDocument||Y.contentWindow.document;pe.open(),pe.write(C),pe.close()}},1e3))},[a,C]);const $=Y=>{w(Y),d==null||d(Y,S)};return u.createElement(R.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:T,width:x?700:"100%",height:y||"100vh",rootClassName:p.smartWrp,destroyOnClose:!0,onClose:()=>z(!1),extra:x&&u.createElement("div",null,u.createElement(l.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:P,onChange:Y=>G(Y)}),u.createElement(n.Z,{type:"primary",className:"ml20",onClick:()=>c(this,null,function*(){yield _(C,()=>{z(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},u.createElement(e.Z,{className:"h100"},u.createElement(m.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:P===1?"block":"none"}},u.createElement("div",{className:"h100",ref:A})),u.createElement(m.Z,{flex:"1",style:{display:P===2?"block":"none"}},u.createElement(i.ZP,{height:"90vh",value:h,language:"html",theme:"vs",showMiniMap:!1,options:k,onChange:$}))))}var t=o},43276:function(Wt,ce,b){"use strict";b.d(ce,{Z:function(){return w}});var r=b(59301),R=b(72719),e=b(77596),m=b(93772),p=b(14179),i=b(56102),l={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},n=b(8591),u=b(11611),c=b(35328),s=b(30084),o=b(10787),t=b(50304),a=b(83251),d=Object.defineProperty,h=Object.defineProperties,g=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,_=(S,M,T)=>M in S?d(S,M,{enumerable:!0,configurable:!0,writable:!0,value:T}):S[M]=T,x=(S,M)=>{for(var T in M||(M={}))y.call(M,T)&&_(S,T,M[T]);if(v)for(var T of v(M))E.call(M,T)&&_(S,T,M[T]);return S},A=(S,M)=>h(S,g(M)),D=(S,M)=>{var T={};for(var z in S)y.call(S,z)&&M.indexOf(z)<0&&(T[z]=S[z]);if(S!=null&&v)for(var z of v(S))M.indexOf(z)<0&&E.call(S,z)&&(T[z]=S[z]);return T},w=({onFinish:S,value:M,streamingStatus:T,cancelIndex:z,loadImage:P,onDynamic:G})=>{const[k,$]=(0,r.useState)(""),[Y,pe]=(0,r.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[W,ue]=(0,r.useState)(0),[Be,Me]=(0,r.useState)(!1),je=_e=>_e.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Qe,Ge)=>`<mathx data-text="${Ge.trim()}">$$${Ge.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Oe=()=>{Me(!0),S==null||S()};(0,r.useEffect)(()=>{const_e=P?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function o({open:a=!0,onChange:d,defaultValue:h,placement:g,width:v,height:y,extra:E,onDynamic:_,showExtra:x=!0}){const A=(0,r.useRef)(null),D=(0,r.useRef)(null),[C,w]=(0,r.useState)(h||""),[S,M]=(0,r.useState)(h||""),[T,z]=(0,r.useState)(!!a),[P,G]=(0,r.useState)(1),k={selectOnLineNumbers:!0};(0,r.useEffect)(()=>{a&&(w(h),M(h),z(!0))},[a,h]),(0,r.useEffect)(()=>{C!==""&&(clearTimeout(D.current),D.current=setTimeout(()=>{const Y=document.createElement("iframe");if(Y.style.width="100%",Y.style.height="100%",Y.style.border="0",A.current){A.current.innerHTML="",A.current.appendChild(Y);const pe=Y.contentDocument||Y.contentWindow.document;pe.open(),pe.write(C),pe.close()}},1e3))},[a,C]);const $=Y=>{w(Y),d==null||d(Y,S)};return u.createElement(R.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:T,width:x?700:"100%",height:y||"100vh",rootClassName:p.smartWrp,destroyOnClose:!0,onClose:()=>z(!1),extra:x&&u.createElement("div",null,u.createElement(l.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:P,onChange:Y=>G(Y)}),u.createElement(n.Z,{type:"primary",className:"ml20",onClick:()=>c(this,null,function*(){yield _(C,()=>{z(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},u.createElement(e.Z,{className:"h100"},u.createElement(m.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:P===1?"block":"none"}},u.createElement("div",{className:"h100",ref:A})),u.createElement(m.Z,{flex:"1",style:{display:P===2?"block":"none"}},u.createElement(i.ZP,{height:"90vh",value:h,language:"html",theme:"vs",showMiniMap:!1,options:k,onChange:$}))))}var t=o},43276:function(Wt,ce,b){"use strict";b.d(ce,{Z:function(){return w}});var r=b(59301),R=b(96536),e=b(77596),m=b(93772),p=b(14179),i=b(56102),l={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},n=b(8591),u=b(11611),c=b(35328),s=b(30084),o=b(10787),t=b(50304),a=b(83251),d=Object.defineProperty,h=Object.defineProperties,g=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,_=(S,M,T)=>M in S?d(S,M,{enumerable:!0,configurable:!0,writable:!0,value:T}):S[M]=T,x=(S,M)=>{for(var T in M||(M={}))y.call(M,T)&&_(S,T,M[T]);if(v)for(var T of v(M))E.call(M,T)&&_(S,T,M[T]);return S},A=(S,M)=>h(S,g(M)),D=(S,M)=>{var T={};for(var z in S)y.call(S,z)&&M.indexOf(z)<0&&(T[z]=S[z]);if(S!=null&&v)for(var z of v(S))M.indexOf(z)<0&&E.call(S,z)&&(T[z]=S[z]);return T},w=({onFinish:S,value:M,streamingStatus:T,cancelIndex:z,loadImage:P,onDynamic:G})=>{const[k,$]=(0,r.useState)(""),[Y,pe]=(0,r.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[W,ue]=(0,r.useState)(0),[Be,Me]=(0,r.useState)(!1),je=_e=>_e.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Qe,Ge)=>`<mathx data-text="${Ge.trim()}">$$${Ge.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Oe=()=>{Me(!0),S==null||S()};(0,r.useEffect)(()=>{const_e=P?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A